use of pipelite.tester.process.SingleStageTestProcessConfiguration in project pipelite by enasequence.
the class TestTypePipelineRunner method assertPipeline.
private <T extends SingleStageTestProcessConfiguration> void assertPipeline(StageService stageServiceSpy, ConfigurableTestPipeline<T> testPipeline, int processCnt) {
SingleStageTestProcessConfiguration testProcessConfiguration = testPipeline.testProcessConfiguration();
assertThat(testProcessConfiguration.configuredProcessIds().size()).isEqualTo(processCnt);
testProcessConfiguration.assertCompleted(processService, stageServiceSpy, metrics, processCnt);
}
use of pipelite.tester.process.SingleStageTestProcessConfiguration in project pipelite by enasequence.
the class TestTypeScheduleRunner method assertSchedule.
private <T extends SingleStageTestProcessConfiguration> void assertSchedule(StageService stageServiceSpy, ConfigurableTestSchedule<T> f, int processCnt) {
ScheduleRunner scheduleRunner = runnerService.getScheduleRunner();
assertThat(scheduleRunner.getActiveProcessRunners().size()).isEqualTo(0);
SingleStageTestProcessConfiguration testProcessConfiguration = f.getTestProcessConfiguration();
assertThat(testProcessConfiguration.configuredProcessIds().size()).isEqualTo(processCnt);
testProcessConfiguration.assertCompleted(processService, stageServiceSpy, metrics, processCnt);
testProcessConfiguration.assertCompletedScheduleEntity(scheduleService, serviceConfiguration.getName(), processCnt);
}
Aggregations