示例#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);
 }
示例#2
0
 @Test
 public void testSerializableEqualsAndHashCode() {
   Verify.assertPostSerializedEqualsAndHashCode(this.list);
   MutableList<String> copyOfList = SerializeTestHelper.serializeDeserialize(this.list);
   Assert.assertNotSame(this.list, copyOfList);
 }