use of com.thoughtworks.go.domain.materials.MaterialAgent in project gocd by gocd.
the class DependencyMaterialAgentTest method shouldBeCreatedByAgentFactory.
@Test
public void shouldBeCreatedByAgentFactory() {
MaterialAgentFactory factory = new MaterialAgentFactory(ProcessOutputStreamConsumer.inMemoryConsumer(), new File("blah"), new AgentIdentifier("", "", ""), null, null);
MaterialAgent createdAgent = factory.createAgent(materialRevision("pipeline-name", 1, "pipeline-label", "stage-name", 1));
assertThat(createdAgent, instanceOf(DependencyMaterialAgent.class));
}
Aggregations