@Test public void updateBuildTestOputputDirectory() { projectDirectoryUpdater.updateBuildTestOputputDirectory(DEFAULT_BUILD_DIRECTORY); verify(mavenProjectMock, times(1)).getModel(); verify(modelMock, times(1)).getBuild(); verify(buildMock, times(1)).setTestOutputDirectory(Paths.get(DEFAULT_BUILD_DIRECTORY, "test-classes").toString()); }
public void updateBuildTestOputputDirectory(String buildDirectory) { checkArgument(buildDirectory != null, "The project build directory must not be null"); project.getModel().getBuild().setTestOutputDirectory(Paths.get(buildDirectory, TEST_CLASSES.value()).toString()); }
ProjectDirectoryUpdater { public void updateBuildTestOputputDirectory(String buildDirectory) { checkArgument(buildDirectory != null, "The project build directory must not be null"); project.getModel().getBuild().setTestOutputDirectory(Paths.get(buildDirectory, TEST_CLASSES.value()).toString()); } }
ProjectDirectoryUpdater { public void updateBuildTestOputputDirectory(String buildDirectory) { checkArgument(buildDirectory != null, "The project build directory must not be null"); project.getModel().getBuild().setTestOutputDirectory(Paths.get(buildDirectory, TEST_CLASSES.value()).toString()); } ProjectDirectoryUpdater(MavenProject project); }
ProjectDirectoryUpdater { public void updateBuildTestOputputDirectory(String buildDirectory) { checkArgument(buildDirectory != null, "The project build directory must not be null"); project.getModel().getBuild().setTestOutputDirectory(Paths.get(buildDirectory, TEST_CLASSES.value()).toString()); } ProjectDirectoryUpdater(MavenProject project); void updateBuildDirectory(String buildDirectory); void updateBuildOutputDirectory(String buildDirectory); void updateBuildTestOputputDirectory(String buildDirectory); void updateReportingOutputDirectory(String buildDirectory); }
ProjectDirectoryUpdater { public void updateBuildTestOputputDirectory(String buildDirectory) { checkArgument(buildDirectory != null, "The project build directory must not be null"); project.getModel().getBuild().setTestOutputDirectory(Paths.get(buildDirectory, TEST_CLASSES.value()).toString()); } ProjectDirectoryUpdater(MavenProject project); void updateBuildDirectory(String buildDirectory); void updateBuildOutputDirectory(String buildDirectory); void updateBuildTestOputputDirectory(String buildDirectory); void updateReportingOutputDirectory(String buildDirectory);  }