Search in sources :

Example 1 with FakeWork

use of com.thoughtworks.go.work.FakeWork in project gocd by gocd.

the class JobRunnerTest method setUp.

@Before
public void setUp() throws Exception {
    runner = new JobRunner();
    work = new FakeWork();
    consoleOut = new ArrayList<>();
    statesAndResult = new ArrayList<>();
    properties = new ArrayList<>();
    agentIdentifier = new AgentIdentifier("localhost", "127.0.0.1", "uuid");
    new SystemEnvironment().setProperty("serviceUrl", SERVER_URL);
    resolver = mock(UpstreamPipelineResolver.class);
}
Also used : SystemEnvironment(com.thoughtworks.go.util.SystemEnvironment) UpstreamPipelineResolver(com.thoughtworks.go.server.service.UpstreamPipelineResolver) AgentIdentifier(com.thoughtworks.go.remote.AgentIdentifier) FakeWork(com.thoughtworks.go.work.FakeWork) Before(org.junit.Before)

Aggregations

AgentIdentifier (com.thoughtworks.go.remote.AgentIdentifier)1 UpstreamPipelineResolver (com.thoughtworks.go.server.service.UpstreamPipelineResolver)1 SystemEnvironment (com.thoughtworks.go.util.SystemEnvironment)1 FakeWork (com.thoughtworks.go.work.FakeWork)1 Before (org.junit.Before)1