assertEquals( EventProcessingOption.CLOUD,
rconf.getEventProcessingMode() );
assertEquals( AssertBehaviour.EQUALITY,
rconf.getAssertBehaviour() );
StatefulKnowledgeSessionImpl ksession1 = (StatefulKnowledgeSessionImpl) context.getBean( "ksession1" );
SessionConfiguration sconf = ksession1.session.getSessionConfiguration();
assertTrue( sconf.isKeepReference() );
assertEquals( ClockType.REALTIME_CLOCK,
sconf.getClockType() );
Map<String, WorkItemHandler> wih = sconf.getWorkItemHandlers();
assertEquals( 4,
wih.size() );
assertTrue( wih.containsKey( "wih1" ) );
assertTrue( wih.containsKey( "wih2" ) );
assertTrue( wih.containsKey( "Human Task" ) );
assertTrue( wih.containsKey( "MyWork" ) );
assertNotSame( wih.get( "wih1" ),
wih.get( "wih2" ) );
assertEquals( HumanTaskHandler.class,
wih.get( "wih1" ).getClass() );
assertEquals( HumanTaskHandler.class,
wih.get( "wih2" ).getClass() );
StatefulKnowledgeSessionImpl ksession2 = (StatefulKnowledgeSessionImpl) context.getBean( "ksession2" );
sconf = ksession2.session.getSessionConfiguration();
assertFalse( sconf.isKeepReference() );
assertEquals( ClockType.PSEUDO_CLOCK,
sconf.getClockType() );