Exemple #1
0
 @Test
 public void shouldBeEqualToEqualTemperatureAsObject() {
   assertTrue(temperature.equals((Object) (new Temperature(786))));
 }
Exemple #2
0
 @Test
 public void shouldNotBeEqualToNull() {
   assertFalse(temperature.equals(null));
 }
Exemple #3
0
 @Test
 public void shouldNotBeEqualToWeirdThing() {
   assertFalse(temperature.equals((Object) (new String("hello"))));
 }
Exemple #4
0
 @Test
 public void shouldNotBeEqualToUnEqualTemperature() {
   assertFalse(temperature.equals(new Temperature(785)));
 }