コード例 #1
0
  @Test
  public void shouldNotBeEqualWhenDifferentClassesAndSameId() throws Exception {
    Encounter encounter = new Encounter(2);
    Order order = new Order(2);

    Assert.assertFalse(encounter.equals(order));
  }
コード例 #2
0
 @Test
 public void shouldNotBeEqualWhenFirstIsNull() throws Exception {
   Encounter encounter = new Encounter(2);
   Assert.assertFalse(encounter.equals(null));
 }