コード例 #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));
 }