@Test public void equalsTest(){ RollbackRule rollbackRuleByClass = new NoRollbackRule(Exception.class); RollbackRule otherRollbackRuleByClass = new NoRollbackRule(Exception.class); Assertions.assertEquals(rollbackRuleByClass, otherRollbackRuleByClass); RollbackRule rollbackRuleByName = new NoRollbackRule(Exception.class.getName()); RollbackRule otherRollbackRuleByName = new NoRollbackRule(Exception.class.getName()); Assertions.assertEquals(rollbackRuleByName, otherRollbackRuleByName); }
@Override public boolean equals(Object other) { return super.equals(other); }
NoRollbackRule extends RollbackRule { @Override public boolean equals(Object other) { return super.equals(other); } }
NoRollbackRule extends RollbackRule { @Override public boolean equals(Object other) { return super.equals(other); } NoRollbackRule(Class<?> clazz);  NoRollbackRule(String exceptionName); }
NoRollbackRule extends RollbackRule { @Override public boolean equals(Object other) { return super.equals(other); } NoRollbackRule(Class<?> clazz);  NoRollbackRule(String exceptionName); @Override boolean equals(Object other); @Override int hashCode(); @Override String toString(); }
NoRollbackRule extends RollbackRule { @Override public boolean equals(Object other) { return super.equals(other); } NoRollbackRule(Class<?> clazz);  NoRollbackRule(String exceptionName); @Override boolean equals(Object other); @Override int hashCode(); @Override String toString();  }