Search in sources :

Example 6 with TestArtifactPlan

use of com.thoughtworks.go.config.TestArtifactPlan in project gocd by gocd.

the class TestArtifactPlanTest method shouldNotThrowExceptionIfFolderNotFound.

@Test
public void shouldNotThrowExceptionIfFolderNotFound() throws Exception {
    final TestArtifactPlan compositeTestArtifact = new TestArtifactPlan(new TestArtifactPlan("some_random_path_that_does_not_exist", "testoutput"));
    compositeTestArtifact.publish(mockArtifactPublisher, rootPath);
    verify(mockArtifactPublisher).consumeLineWithPrefix("The Directory target/test/some_random_path_that_does_not_exist specified as a test artifact was not found. Please check your configuration");
}
Also used : TestArtifactPlan(com.thoughtworks.go.config.TestArtifactPlan) Test(org.junit.Test)

Aggregations

TestArtifactPlan (com.thoughtworks.go.config.TestArtifactPlan)6 ArtifactPlan (com.thoughtworks.go.config.ArtifactPlan)5 Test (org.junit.Test)5 ArtifactPlans (com.thoughtworks.go.config.ArtifactPlans)3 ArrayList (java.util.ArrayList)2 HashMap (java.util.HashMap)2