コード例 #1
0
 @Test
 public void doesNotEqualDifferentTeam() throws Exception {
   Team otherTeam = new Team(2000, school);
   assertFalse(team.equals(otherTeam));
 }
コード例 #2
0
 @Test
 public void equalsSameTeam() throws Exception {
   Team otherTeam = new Team(1900, school);
   assertTrue(team.equals(otherTeam));
 }