SimulationStepImpl step24 = new SimulationStepImpl(path2,
5000);
List<Command> cmds24 = new ArrayList<Command>();
cmds24.add(new AssertEquals("Check List size",
5,
new GetGlobalCommand("list"),
"size()"));
cmds24.add(new AssertEquals("Check Person",
new Person("bobba",
77),
new GetGlobalCommand("list"),
"get( 0 )" ) );
cmds24.add(new AssertEquals("Check Person",
new Person("darth",
97),
new GetGlobalCommand("list"),
"get( 1 )"));
cmds24.add(new AssertEquals("Check Person",
new Person("luke",
30),
new GetGlobalCommand("list"),
"get( 2 )"));
cmds24.add(new AssertEquals("Check Person",
new Person("yoda",
98),
new GetGlobalCommand("list"),
"get( 3 )"));
cmds24.add(new AssertEquals("Check Person",
new Person("ben",
150),
new GetGlobalCommand("list"),
"get( 4 )"));
step24.getCommands().add(new TestGroupCommand("test2", cmds24));
steps2.add(step24);