@Test(expected = IllegalArgumentException.class) public void updateBuildDirectoryNullDirectory() { projectDirectoryUpdater.updateBuildDirectory(null); }
public void updateBuildDirectory(String buildDirectory) { checkArgument(buildDirectory != null, "The project build directory must not be null"); project.getBuild().setDirectory(buildDirectory); updateBuildOutputDirectory(buildDirectory); updateBuildTestOputputDirectory(buildDirectory); updateReportingOutputDirectory(buildDirectory); }
ProjectDirectoryUpdater { public void updateBuildDirectory(String buildDirectory) { checkArgument(buildDirectory != null, "The project build directory must not be null"); project.getBuild().setDirectory(buildDirectory); updateBuildOutputDirectory(buildDirectory); updateBuildTestOputputDirectory(buildDirectory); updateReportingOutputDirectory(buildDirectory); } }
ProjectDirectoryUpdater { public void updateBuildDirectory(String buildDirectory) { checkArgument(buildDirectory != null, "The project build directory must not be null"); project.getBuild().setDirectory(buildDirectory); updateBuildOutputDirectory(buildDirectory); updateBuildTestOputputDirectory(buildDirectory); updateReportingOutputDirectory(buildDirectory); } ProjectDirectoryUpdater(MavenProject project); }
ProjectDirectoryUpdater { public void updateBuildDirectory(String buildDirectory) { checkArgument(buildDirectory != null, "The project build directory must not be null"); project.getBuild().setDirectory(buildDirectory); updateBuildOutputDirectory(buildDirectory); updateBuildTestOputputDirectory(buildDirectory); updateReportingOutputDirectory(buildDirectory); } ProjectDirectoryUpdater(MavenProject project); void updateBuildDirectory(String buildDirectory); void updateBuildOutputDirectory(String buildDirectory); void updateBuildTestOputputDirectory(String buildDirectory); void updateReportingOutputDirectory(String buildDirectory); }
ProjectDirectoryUpdater { public void updateBuildDirectory(String buildDirectory) { checkArgument(buildDirectory != null, "The project build directory must not be null"); project.getBuild().setDirectory(buildDirectory); updateBuildOutputDirectory(buildDirectory); updateBuildTestOputputDirectory(buildDirectory); updateReportingOutputDirectory(buildDirectory); } ProjectDirectoryUpdater(MavenProject project); void updateBuildDirectory(String buildDirectory); void updateBuildOutputDirectory(String buildDirectory); void updateBuildTestOputputDirectory(String buildDirectory); void updateReportingOutputDirectory(String buildDirectory);  }