@Test public void assertJobInit() { while (!StreamingSequenceDataFlowElasticJob.isCompleted()) { WaitingUtils.waitingShortTime(); } assertTrue(getRegCenter().isExisted("/" + getJobName() + "/execution")); assertThat(ProcessCountStatistics.getProcessSuccessCount(getJobName()), is(30)); assertThat(ProcessCountStatistics.getProcessFailureCount(getJobName()), is(0)); }
@Before @After public void reset() { StreamingSequenceDataFlowElasticJob.reset(); }