Search in sources :

Example 1 with PluggableTaskBuilder

use of com.thoughtworks.go.domain.builder.pluggableTask.PluggableTaskBuilder 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));
}
Also used : PluggableTaskBuilder(com.thoughtworks.go.domain.builder.pluggableTask.PluggableTaskBuilder) PluggableTaskBuilder(com.thoughtworks.go.domain.builder.pluggableTask.PluggableTaskBuilder) Builder(com.thoughtworks.go.domain.builder.Builder) Pipeline(com.thoughtworks.go.domain.Pipeline) Test(org.junit.Test) TasksTest(com.thoughtworks.go.domain.TasksTest)

Aggregations

Pipeline (com.thoughtworks.go.domain.Pipeline)1 TasksTest (com.thoughtworks.go.domain.TasksTest)1 Builder (com.thoughtworks.go.domain.builder.Builder)1 PluggableTaskBuilder (com.thoughtworks.go.domain.builder.pluggableTask.PluggableTaskBuilder)1 Test (org.junit.Test)1