List<IAction> actionCol0definition = actionCol0.getDefinition();
assertEquals( 1,
actionCol0definition.size() );
assertTrue( actionCol0definition.get( 0 ) instanceof FreeFormLine );
FreeFormLine actionCol0ffl = (FreeFormLine) actionCol0definition.get( 0 );
assertEquals( "policy.setBasePrice(@{param1}, @{param2});",
actionCol0ffl.text );
//Column 1 - Variable 1
BRLActionVariableColumn actionCol0param0 = actionCol0.getChildColumns().get( 0 );
assertEquals( "param1",
actionCol0param0.getVarName() );
assertEquals( "Multi-parameters",
actionCol0param0.getHeader() );
assertEquals( SuggestionCompletionEngine.TYPE_OBJECT,
actionCol0param0.getFieldType() );
assertNull( actionCol0param0.getFactType() );
assertNull( actionCol0param0.getFactField() );
//Column 1 - Variable 2
BRLActionVariableColumn actionCol0param1 = actionCol0.getChildColumns().get( 1 );
assertEquals( "param2",
actionCol0param1.getVarName() );
assertEquals( "Multi-parameters",
actionCol0param1.getHeader() );
assertEquals( SuggestionCompletionEngine.TYPE_OBJECT,
actionCol0param1.getFieldType() );
assertNull( actionCol0param1.getFactType() );
assertNull( actionCol0param1.getFactField() );
//Column 2
BRLActionColumn actionCol1 = ((BRLActionColumn) dtable.getActionCols().get( 1 ));
assertEquals( "Single-parameter",
actionCol1.getHeader() );
assertEquals( 1,
actionCol1.getChildColumns().size() );
List<IAction> actionCol1definition = actionCol1.getDefinition();
assertEquals( 1,
actionCol1definition.size() );
assertTrue( actionCol1definition.get( 0 ) instanceof FreeFormLine );
FreeFormLine actionCol1ffl = (FreeFormLine) actionCol1definition.get( 0 );
assertEquals( "policy.setSmurf(@{param3});",
actionCol1ffl.text );
//Column 2 - Variable 1
BRLActionVariableColumn actionCol1param0 = actionCol1.getChildColumns().get( 0 );
assertEquals( "param3",
actionCol1param0.getVarName() );
assertEquals( "Single-parameter",
actionCol1param0.getHeader() );
assertEquals( SuggestionCompletionEngine.TYPE_OBJECT,
actionCol1param0.getFieldType() );
assertNull( actionCol1param0.getFactType() );
assertNull( actionCol1param0.getFactField() );
//Column 3
BRLActionColumn actionCol2 = ((BRLActionColumn) dtable.getActionCols().get( 2 ));
assertEquals( "Log-single-parameter",
actionCol2.getHeader() );
assertEquals( 1,
actionCol2.getChildColumns().size() );
List<IAction> actionCol2definition = actionCol2.getDefinition();
assertEquals( 1,
actionCol2definition.size() );
assertTrue( actionCol2definition.get( 0 ) instanceof FreeFormLine );
FreeFormLine actionCol2ffl = (FreeFormLine) actionCol2definition.get( 0 );
assertEquals( "System.out.println(\"@{param4}\");",
actionCol2ffl.text );
//Column 3 - Variable 1
BRLActionVariableColumn actionCol2param0 = actionCol2.getChildColumns().get( 0 );
assertEquals( "param4",
actionCol2param0.getVarName() );
assertEquals( "Log-single-parameter",
actionCol2param0.getHeader() );
assertEquals( SuggestionCompletionEngine.TYPE_OBJECT,
actionCol2param0.getFieldType() );
assertNull( actionCol2param0.getFactType() );
assertNull( actionCol2param0.getFactField() );
//Column 4
BRLActionColumn actionCol3 = ((BRLActionColumn) dtable.getActionCols().get( 3 ));
assertEquals( "Zero-parameters",
actionCol3.getHeader() );
assertEquals( 1,
actionCol3.getChildColumns().size() );
List<IAction> actionCol3definition = actionCol3.getDefinition();
assertEquals( 1,
actionCol3definition.size() );
assertTrue( actionCol3definition.get( 0 ) instanceof FreeFormLine );
FreeFormLine actionCol3ffl = (FreeFormLine) actionCol3definition.get( 0 );
assertEquals( "System.out.println(\"Woot\");",
actionCol3ffl.text );
//Column 3 - Variable 1
BRLActionVariableColumn actionCol3param0 = actionCol3.getChildColumns().get( 0 );