Esempio n. 1
0
 @Test
 public void testEqualsAndHashCode() {
   MutableList<String> one = Lists.fixedSize.of("1", "2", "3", "4", "5", "6");
   List<String> oneA = new ArrayList<String>(one);
   Verify.assertEqualsAndHashCode(one, oneA);
   Verify.assertPostSerializedEqualsAndHashCode(one);
 }
Esempio n. 2
0
 @Test
 public void testSerializableEqualsAndHashCode() {
   Verify.assertPostSerializedEqualsAndHashCode(this.list);
   MutableList<String> copyOfList = SerializeTestHelper.serializeDeserialize(this.list);
   Assert.assertNotSame(this.list, copyOfList);
 }