Search in sources :

Example 1 with StubBuilder

use of com.thoughtworks.go.domain.builder.StubBuilder in project gocd by gocd.

the class BuildersTest method shouldNotCancelAnythingIfAllBuildersHaveRun.

@Test
public void shouldNotCancelAnythingIfAllBuildersHaveRun() throws Exception {
    EnvironmentVariableContext environmentVariableContext = new EnvironmentVariableContext();
    Builder builder = new StubBuilder(new RunIfConfigs(ANY));
    Builders builders = new Builders(Collections.singletonList(builder), new StubGoPublisher(), null, null, null);
    builders.build(environmentVariableContext, "utf-8");
    builders.cancel(environmentVariableContext, "utf-8");
}
Also used : StubGoPublisher(com.thoughtworks.go.domain.StubGoPublisher) CommandBuilder(com.thoughtworks.go.domain.builder.CommandBuilder) Builder(com.thoughtworks.go.domain.builder.Builder) StubBuilder(com.thoughtworks.go.domain.builder.StubBuilder) RunIfConfigs(com.thoughtworks.go.domain.RunIfConfigs) EnvironmentVariableContext(com.thoughtworks.go.util.command.EnvironmentVariableContext) StubBuilder(com.thoughtworks.go.domain.builder.StubBuilder) Test(org.junit.jupiter.api.Test)

Aggregations

RunIfConfigs (com.thoughtworks.go.domain.RunIfConfigs)1 StubGoPublisher (com.thoughtworks.go.domain.StubGoPublisher)1 Builder (com.thoughtworks.go.domain.builder.Builder)1 CommandBuilder (com.thoughtworks.go.domain.builder.CommandBuilder)1 StubBuilder (com.thoughtworks.go.domain.builder.StubBuilder)1 EnvironmentVariableContext (com.thoughtworks.go.util.command.EnvironmentVariableContext)1 Test (org.junit.jupiter.api.Test)1