@Test public void testSetDryRun() { final ImportOptions delegate = new ImportOptions(); final InternalImportOptions options = new InternalImportOptions(pid, delegate, null); delegate.setDryRun(false); assertFalse("isDryRun false", options.isDryRun()); delegate.setDryRun(true); assertTrue("isDryRun true", options.isDryRun()); options.setDryRun(false); assertFalse("isDryRun false", delegate.isDryRun()); options.setDryRun(true); assertTrue("isDryRun true", delegate.isDryRun()); }
@Override public void setDryRun(final boolean dryRun) { optionsDelegate.setDryRun(dryRun); }
InternalImportOptions extends ImportOptions implements InstallHookProcessorFactory { @Override public void setDryRun(final boolean dryRun) { optionsDelegate.setDryRun(dryRun); } }
InternalImportOptions extends ImportOptions implements InstallHookProcessorFactory { @Override public void setDryRun(final boolean dryRun) { optionsDelegate.setDryRun(dryRun); } InternalImportOptions(final @NotNull PackageId packageId, final @NotNull ClassLoader implClassLoader);   InternalImportOptions(final @NotNull PackageId packageId,
                          final @Nullable ImportOptions optionsDelegate,
                          final @Nullable Class<? extends InstallHookProcessor> internalInstallHookProcessorClazz); }
InternalImportOptions extends ImportOptions implements InstallHookProcessorFactory { @Override public void setDryRun(final boolean dryRun) { optionsDelegate.setDryRun(dryRun); } InternalImportOptions(final @NotNull PackageId packageId, final @NotNull ClassLoader implClassLoader);   InternalImportOptions(final @NotNull PackageId packageId,
                          final @Nullable ImportOptions optionsDelegate,
                          final @Nullable Class<? extends InstallHookProcessor> internalInstallHookProcessorClazz); @Override InstallHookProcessor createInstallHookProcessor(); @Override ImportOptions copy(); InstallHookProcessorFactory getInstallHookProcessorFactoryDelegate(); void setInstallHookProcessorFactoryDelegate(final InstallHookProcessorFactory installHookProcessorFactoryDelegate); InstallHookPolicy getInstallHookPolicy(); void setInstallHookPolicy(final InstallHookPolicy installHookPolicy); ErrorListener getViolationReporter(); void setViolationReporter(final ErrorListener violationReporter); @Override boolean isStrict(); @Override void setStrict(final boolean strict); @Override ProgressTrackerListener getListener(); @Override void setListener(final ProgressTrackerListener listener); @Override String getPatchParentPath(); @Override void setPatchParentPath(final String patchParentPath); @Override File getPatchDirectory(); @Override void setPatchDirectory(final File patchDirectory); @Override boolean isPatchKeepInRepo(); @Override void setPatchKeepInRepo(final boolean patchKeepInRepo); @Override AccessControlHandling getAccessControlHandling(); @Override void setAccessControlHandling(final AccessControlHandling acHandling); @Override boolean isNonRecursive(); @Override void setNonRecursive(final boolean nonRecursive); @Override Pattern getCndPattern(); @Override void setCndPattern(final String cndPattern); @Override boolean isDryRun(); @Override void setDryRun(final boolean dryRun); @Override void setAutoSaveThreshold(final int threshold); @Override int getAutoSaveThreshold(); @Override ImportMode getImportMode(); @Override void setImportMode(final ImportMode importMode); @Override WorkspaceFilter getFilter(); @Override void setFilter(final WorkspaceFilter filter); @Override ClassLoader getHookClassLoader(); @Override void setHookClassLoader(final ClassLoader hookClassLoader); @Override PathMapping getPathMapping(); @Override void setPathMapping(final PathMapping pathMapping); @Override DependencyHandling getDependencyHandling(); @Override void setDependencyHandling(final DependencyHandling dependencyHandling); }
InternalImportOptions extends ImportOptions implements InstallHookProcessorFactory { @Override public void setDryRun(final boolean dryRun) { optionsDelegate.setDryRun(dryRun); } InternalImportOptions(final @NotNull PackageId packageId, final @NotNull ClassLoader implClassLoader);   InternalImportOptions(final @NotNull PackageId packageId,
                          final @Nullable ImportOptions optionsDelegate,
                          final @Nullable Class<? extends InstallHookProcessor> internalInstallHookProcessorClazz); @Override InstallHookProcessor createInstallHookProcessor(); @Override ImportOptions copy(); InstallHookProcessorFactory getInstallHookProcessorFactoryDelegate(); void setInstallHookProcessorFactoryDelegate(final InstallHookProcessorFactory installHookProcessorFactoryDelegate); InstallHookPolicy getInstallHookPolicy(); void setInstallHookPolicy(final InstallHookPolicy installHookPolicy); ErrorListener getViolationReporter(); void setViolationReporter(final ErrorListener violationReporter); @Override boolean isStrict(); @Override void setStrict(final boolean strict); @Override ProgressTrackerListener getListener(); @Override void setListener(final ProgressTrackerListener listener); @Override String getPatchParentPath(); @Override void setPatchParentPath(final String patchParentPath); @Override File getPatchDirectory(); @Override void setPatchDirectory(final File patchDirectory); @Override boolean isPatchKeepInRepo(); @Override void setPatchKeepInRepo(final boolean patchKeepInRepo); @Override AccessControlHandling getAccessControlHandling(); @Override void setAccessControlHandling(final AccessControlHandling acHandling); @Override boolean isNonRecursive(); @Override void setNonRecursive(final boolean nonRecursive); @Override Pattern getCndPattern(); @Override void setCndPattern(final String cndPattern); @Override boolean isDryRun(); @Override void setDryRun(final boolean dryRun); @Override void setAutoSaveThreshold(final int threshold); @Override int getAutoSaveThreshold(); @Override ImportMode getImportMode(); @Override void setImportMode(final ImportMode importMode); @Override WorkspaceFilter getFilter(); @Override void setFilter(final WorkspaceFilter filter); @Override ClassLoader getHookClassLoader(); @Override void setHookClassLoader(final ClassLoader hookClassLoader); @Override PathMapping getPathMapping(); @Override void setPathMapping(final PathMapping pathMapping); @Override DependencyHandling getDependencyHandling(); @Override void setDependencyHandling(final DependencyHandling dependencyHandling);  }