Search in sources :

Example 1 with BuildExecutionSessionMock

use of org.jboss.pnc.mock.executor.BuildExecutionSessionMock in project pnc by project-ncl.

the class BuildExecutionTest method createFakeExectionSession.

private BuildExecutionSession createFakeExectionSession(Consumer<TaskStatusUpdateEvent> statusChangeConsumer) {
    BuildExecutionSessionMock buildExecutionSession = new BuildExecutionSessionMock(null, (v) -> {
    });
    buildExecutionSession.setBuildStatusUpdateConsumer(statusChangeConsumer);
    return buildExecutionSession;
}
Also used : BuildExecutionSessionMock(org.jboss.pnc.mock.executor.BuildExecutionSessionMock)

Aggregations

BuildExecutionSessionMock (org.jboss.pnc.mock.executor.BuildExecutionSessionMock)1