use of com.thoughtworks.go.domain.builder.Builder in project gocd by gocd.
the class PluggableTaskBuilderCreatorTest method shouldCreatePluggableTaskBuilder.
@Test
public void shouldCreatePluggableTaskBuilder() throws Exception {
when(builderFactory.builderFor(pluggableTask.cancelTask(), pipeline, resolver)).thenReturn(null);
Builder builder = pluggableTaskBuilderCreator.createBuilder(builderFactory, pluggableTask, new Pipeline(), resolver);
assertThat(builder != null, is(true));
assertThat(builder instanceof PluggableTaskBuilder, is(true));
}
Aggregations