BRLConditionColumn extends ConditionCol52 implements
        BRLColumn<IPattern, BRLConditionVariableColumn> { public void setDefinition( List<IPattern> definition ) { this.definition = definition; }  @Override List<BaseColumnFieldDiff> diff( BaseColumn otherColumn ); List<IPattern> getDefinition(); void setDefinition( List<IPattern> definition ); List<BRLConditionVariableColumn> getChildColumns(); void setChildColumns( List<BRLConditionVariableColumn> childColumns ); @Override void setHideColumn( boolean hideColumn ); @Override boolean equals(Object o); @Override int hashCode(); static final String FIELD_DEFINITION; static final String FIELD_CHILD_COLUMNS; }
@Test public void testDiffDefinitions() { List<IPattern> definition1 = Arrays.asList(new FactPattern("Mock1")); column1.setDefinition(definition1); List<IPattern> definition2 = Arrays.asList(new FactPattern("Mock2")); column2.setDefinition(definition2); checkSingleDiff(FIELD_DEFINITION, definition1, definition2, column1, column2); assertNotEquals(column1, column2); }