|
cmds = new ArrayList<Command>();
cmds.add( new KnowledgeContextResolveFromContextCommand( new AssertEquals( "Check List size",
5,
new GetGlobalCommand( "list" ),
"size()" ),
"kbuilder",
"kbase",
"ksession", null ) );
cmds.add( new KnowledgeContextResolveFromContextCommand( new AssertEquals( "Check Person",
new Person( "bobba",
77 ),
new GetGlobalCommand( "list" ),
"get( 0 )" ),
"kbuilder",
"kbase",
"ksession", null ) );
cmds.add( new KnowledgeContextResolveFromContextCommand( new AssertEquals( "Check Person",
new Person( "darth",
97 ),
new GetGlobalCommand( "list" ),
"get( 1 )" ),
"kbuilder",
"kbase",
"ksession", null ) );
cmds.add( new KnowledgeContextResolveFromContextCommand( new AssertEquals( "Check Person",
new Person( "luke",
30 ),
new GetGlobalCommand( "list" ),
"get( 2 )" ),
"kbuilder",
"kbase",
"ksession", null ) );
cmds.add( new KnowledgeContextResolveFromContextCommand( new AssertEquals( "Check Person",
new Person( "yoda",
98 ),
new GetGlobalCommand( "list" ),
"get( 3 )" ),
"kbuilder",
"kbase",
"ksession", null ) );
cmds.add( new KnowledgeContextResolveFromContextCommand( new AssertEquals( "Check Person",
new Person( "ben",
150 ),
new GetGlobalCommand( "list" ),
"get( 4 )" ),
"kbuilder",
"kbase",
"ksession", null ) );
|