@Test public void testToString() { Constraint myconstraint1 = createMock(Constraint.class); Constraint myconstraint2 = createMock(Constraint.class); Or myOr = new Or(myconstraint1, myconstraint2); Assert .assertEquals( "Or([EasyMock for class com.bah.culvert.constraints.Constraint,EasyMock for class com.bah.culvert.constraints.Constraint])", myOr.toString()); }
@Override public String toString() { return new StringBuilder().append("Or(").append(super.toString()) .append(")").toString(); }
Or extends Logic { @Override public String toString() { return new StringBuilder().append("Or(").append(super.toString()) .append(")").toString(); } }
Or extends Logic { @Override public String toString() { return new StringBuilder().append("Or(").append(super.toString()) .append(")").toString(); } Or();  Or(Constraint... subConstraints);  Or(List<Constraint> asList); }
Or extends Logic { @Override public String toString() { return new StringBuilder().append("Or(").append(super.toString()) .append(")").toString(); } Or();  Or(Constraint... subConstraints);  Or(List<Constraint> asList); @Override String toString(); @Override boolean equals(Object a); @Override int hashCode(); }
Or extends Logic { @Override public String toString() { return new StringBuilder().append("Or(").append(super.toString()) .append(")").toString(); } Or();  Or(Constraint... subConstraints);  Or(List<Constraint> asList); @Override String toString(); @Override boolean equals(Object a); @Override int hashCode();  }