979899100101102103104105106107
source.setChannelProcessor(chp); source.start(); Thread.sleep(5000); source.stop(); sinkRunner.stop(); sink.stop(); } @Test public void testCarrotDateFormatBug() throws Exception {
201202203204205206207208209210
Assert.assertEquals(new Integer(10), s1.getWritten()); Assert.assertEquals(new Integer(55), s2.getWritten()); Assert.assertEquals(new Integer(100), s3.getWritten()); runner.stop(); ch.stop(); } }
206207208209210211212213214215
Assert.assertEquals(new Integer(10), s1.getWritten()); Assert.assertEquals(new Integer(70), s2.getWritten()); Assert.assertEquals(new Integer(85), s3.getWritten()); runner.stop(); ch.stop(); } }