@Test public void testConditionEquality() { String symbolValue = "symbol"; ErrorCondition same1 = new ErrorCondition(); same1.setCondition(Symbol.getSymbol(new String(symbolValue))); ErrorCondition same2 = new ErrorCondition(); same2.setCondition(Symbol.getSymbol(new String(symbolValue))); assertErrorConditionsEqual(same1, same2); ErrorCondition different = new ErrorCondition(); different.setCondition(Symbol.getSymbol("other")); assertErrorConditionsNotEqual(same1, different); }
public void setCondition(Symbol condition) { if( condition == null ) { throw new NullPointerException("the condition field is mandatory"); } _condition = condition; }
ErrorCondition { public void setCondition(Symbol condition) { if( condition == null ) { throw new NullPointerException("the condition field is mandatory"); } _condition = condition; } }
ErrorCondition { public void setCondition(Symbol condition) { if( condition == null ) { throw new NullPointerException("the condition field is mandatory"); } _condition = condition; } ErrorCondition();  ErrorCondition(Symbol condition, String description); }
ErrorCondition { public void setCondition(Symbol condition) { if( condition == null ) { throw new NullPointerException("the condition field is mandatory"); } _condition = condition; } ErrorCondition();  ErrorCondition(Symbol condition, String description); Symbol getCondition(); void setCondition(Symbol condition); String getDescription(); void setDescription(String description); Map getInfo(); void setInfo(Map info); void clear(); void copyFrom(ErrorCondition condition); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); }
ErrorCondition { public void setCondition(Symbol condition) { if( condition == null ) { throw new NullPointerException("the condition field is mandatory"); } _condition = condition; } ErrorCondition();  ErrorCondition(Symbol condition, String description); Symbol getCondition(); void setCondition(Symbol condition); String getDescription(); void setDescription(String description); Map getInfo(); void setInfo(Map info); void clear(); void copyFrom(ErrorCondition condition); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }