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