Search in sources :

Example 1 with SingleStageTestProcessConfiguration

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);
}
Also used : SingleStageTestProcessConfiguration(pipelite.tester.process.SingleStageTestProcessConfiguration)

Example 2 with SingleStageTestProcessConfiguration

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);
}
Also used : SingleStageTestProcessConfiguration(pipelite.tester.process.SingleStageTestProcessConfiguration) ScheduleRunner(pipelite.runner.schedule.ScheduleRunner)

Aggregations

SingleStageTestProcessConfiguration (pipelite.tester.process.SingleStageTestProcessConfiguration)2 ScheduleRunner (pipelite.runner.schedule.ScheduleRunner)1