@Test public void setNullApplicationsFolder() { expectedException.expect(IllegalArgumentException.class); expectedException.expectMessage("The folder must not be null"); builder.withApplications(null); }
public DomainBundlePackageBuilder withApplications(File folder) { checkArgument(folder != null, "The folder must not be null"); checkArgument(folder.exists(), "The folder must exist"); applicationsFolder = folder; return this; }
DomainBundlePackageBuilder implements PackageBuilder { public DomainBundlePackageBuilder withApplications(File folder) { checkArgument(folder != null, "The folder must not be null"); checkArgument(folder.exists(), "The folder must exist"); applicationsFolder = folder; return this; } }
DomainBundlePackageBuilder implements PackageBuilder { public DomainBundlePackageBuilder withApplications(File folder) { checkArgument(folder != null, "The folder must not be null"); checkArgument(folder.exists(), "The folder must exist"); applicationsFolder = folder; return this; }  }
DomainBundlePackageBuilder implements PackageBuilder { public DomainBundlePackageBuilder withApplications(File folder) { checkArgument(folder != null, "The folder must not be null"); checkArgument(folder.exists(), "The folder must exist"); applicationsFolder = folder; return this; }  DomainBundlePackageBuilder withMaven(File folder); DomainBundlePackageBuilder withDomain(File folder); DomainBundlePackageBuilder withApplications(File folder); DomainBundlePackageBuilder withArchiver(AbstractArchiver archiver); @Override void createPackage(Path originFolderPath, Path destinationPath); @Override void createPackage(Path destinationPath); }
DomainBundlePackageBuilder implements PackageBuilder { public DomainBundlePackageBuilder withApplications(File folder) { checkArgument(folder != null, "The folder must not be null"); checkArgument(folder.exists(), "The folder must exist"); applicationsFolder = folder; return this; }  DomainBundlePackageBuilder withMaven(File folder); DomainBundlePackageBuilder withDomain(File folder); DomainBundlePackageBuilder withApplications(File folder); DomainBundlePackageBuilder withArchiver(AbstractArchiver archiver); @Override void createPackage(Path originFolderPath, Path destinationPath); @Override void createPackage(Path destinationPath);  }