예제 #1
0
 @Test
 public void test_equals() {
   assertThat(ref.equals(ref), equalTo(true));
   assertThat(ref.equals(new TypeReference<String>() {}), equalTo(true));
   assertThat(ref.equals(null), equalTo(false));
   assertThat(ref.equals(""), equalTo(false));
   assertThat(ref.equals(new TypeReference<Boolean>() {}), equalTo(false));
 }
예제 #2
0
 @Test
 public void test_toString() {
   assertThat(ref.toString(), equalTo(String.class.toString()));
 }
예제 #3
0
 @Test
 public void test_compareTo() {
   assertThat(ref.compareTo(null), equalTo(0));
 }
예제 #4
0
 @Test
 public void test_hashCode() {
   assertThat(ref.hashCode(), equalTo(String.class.hashCode()));
 }
예제 #5
0
 @Test
 public void test_getType() {
   assertThat(ref.getType(), equalTo(String.class));
 }