Added tests
This commit is contained in:
@@ -49,6 +49,17 @@ public class PostReleaseActionsTests {
|
||||
FileSystemUtils.copyRecursively(file("/projects/"), this.temporaryFolder);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void should_do_nothing_when_the_switch_is_off() {
|
||||
this.properties.getGit().setRunUpdatedSamples(false);
|
||||
PostReleaseActions actions = new PostReleaseActions(this.projectGitHandler,
|
||||
this.updater, this.builder, this.properties);
|
||||
|
||||
actions.runUpdatedTests(currentGa());
|
||||
|
||||
BDDAssertions.then(clonedTestSamples).isNull();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void should_update_project_and_run_tests() {
|
||||
this.properties.getGit().setTestSamplesProjectUrl(tmpFile("spring-cloud-core-tests/").getAbsolutePath() + "/");
|
||||
|
||||
Reference in New Issue
Block a user