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