assertNotNull( dtables );
assertEquals( 1,
dtables.size() );
GuidedDecisionTable52 dtable = dtables.get( 0 );
assertEquals( "AttributesTest",
dtable.getTableName() );
assertEquals( GuidedDecisionTable52.TableFormat.EXTENDED_ENTRY,
dtable.getTableFormat() );
//Check expanded columns
List<BaseColumn> columns = dtable.getExpandedColumns();
assertNotNull( columns );
assertEquals( 13,
columns.size() );
assertTrue( columns.get( 0 ) instanceof RowNumberCol52 );
assertTrue( columns.get( 1 ) instanceof DescriptionCol52 );
assertTrue( columns.get( 2 ) instanceof AttributeCol52 );
assertTrue( columns.get( 3 ) instanceof AttributeCol52 );
assertTrue( columns.get( 4 ) instanceof AttributeCol52 );
assertTrue( columns.get( 5 ) instanceof AttributeCol52 );
assertTrue( columns.get( 6 ) instanceof AttributeCol52 );
assertTrue( columns.get( 7 ) instanceof AttributeCol52 );
assertTrue( columns.get( 8 ) instanceof AttributeCol52 );
assertTrue( columns.get( 9 ) instanceof AttributeCol52 );
assertTrue( columns.get( 10 ) instanceof AttributeCol52 );
assertTrue( columns.get( 11 ) instanceof AttributeCol52 );
assertTrue( columns.get( 12 ) instanceof AnalysisCol52 );
//Check individual attributes
AttributeCol52 attrCol2 = ((AttributeCol52) columns.get( 2 ));
assertEquals( GuidedDecisionTable52.SALIENCE_ATTR,
attrCol2.getAttribute() );
assertFalse( attrCol2.isUseRowNumber() );
assertFalse( attrCol2.isReverseOrder() );
AttributeCol52 attrCol3 = ((AttributeCol52) columns.get( 3 ));
assertEquals( GuidedDecisionTable52.ACTIVATION_GROUP_ATTR,
attrCol3.getAttribute() );
AttributeCol52 attrCol4 = ((AttributeCol52) columns.get( 4 ));
assertEquals( GuidedDecisionTable52.DURATION_ATTR,
attrCol4.getAttribute() );
AttributeCol52 attrCol5 = ((AttributeCol52) columns.get( 5 ));
assertEquals( GuidedDecisionTable52.TIMER_ATTR,
attrCol5.getAttribute() );
AttributeCol52 attrCol6 = ((AttributeCol52) columns.get( 6 ));
assertEquals( GuidedDecisionTable52.CALENDARS_ATTR,
attrCol6.getAttribute() );
AttributeCol52 attrCol7 = ((AttributeCol52) columns.get( 7 ));
assertEquals( GuidedDecisionTable52.NO_LOOP_ATTR,
attrCol7.getAttribute() );
AttributeCol52 attrCol8 = ((AttributeCol52) columns.get( 8 ));
assertEquals( GuidedDecisionTable52.LOCK_ON_ACTIVE_ATTR,
attrCol8.getAttribute() );
AttributeCol52 attrCol9 = ((AttributeCol52) columns.get( 9 ));
assertEquals( GuidedDecisionTable52.AUTO_FOCUS_ATTR,
attrCol9.getAttribute() );
AttributeCol52 attrCol10 = ((AttributeCol52) columns.get( 10 ));
assertEquals( GuidedDecisionTable52.AGENDA_GROUP_ATTR,
attrCol10.getAttribute() );
AttributeCol52 attrCol11 = ((AttributeCol52) columns.get( 11 ));
assertEquals( GuidedDecisionTable52.RULEFLOW_GROUP_ATTR,
attrCol11.getAttribute() );
//Check data
assertEquals( 2,
dtable.getData().size() );
assertTrue( isRowEquivalent( new String[]{"1", "Specific rule 1", "1", "g1", "100", "T1", "CAL1", "TRUE", "TRUE", "TRUE", "AG1", "RFG1"},
dtable.getData().get( 0 ) ) );
assertTrue( isRowEquivalent( new String[]{"2", "Specific rule 2", "2", "g2", "200", "T2", "CAL2", "FALSE", "FALSE", "FALSE", "AG2", "RFG2"},
dtable.getData().get( 1 ) ) );
}