16891690169116921693169416951696169716981699
// still under the threshold, so no fire assertEquals( 3, results.size() ); } finally { logger.writeToDisk(); } } @Test(timeout=10000) public void testCollectWithWindows() throws Exception {
18061807180818091810181118121813181418151816
assertEquals( 5, lengthResults.size() ); assertEquals( 3, lengthResults.get( 4 ).intValue() ); } finally { logger.writeToDisk(); } } @Test(timeout=10000)
3031323334353637383940
message.setStatus(Message.HELLO); session.insert(message); session.fireAllRules(); logger.writeToDisk(); session.dispose(); } public static class Message {
16311632163316341635163616371638163916401641
// still under the threshold, so no fire assertEquals( 3, results.size() ); } finally { logger.writeToDisk(); } } @Test public void testCollectWithWindows() throws Exception {
17481749175017511752175317541755175617571758
assertEquals( 5, lengthResults.size() ); assertEquals( 3, lengthResults.get( 4 ).intValue() ); } finally { logger.writeToDisk(); } } @Test