@Override
 @Test
 public void testNewWithout() {
   ImmutableSet<Integer> immutable = this.classUnderTest();
   Verify.assertSize(3, immutable.newWithout(4).castToSet());
   Verify.assertSize(3, immutable.newWithout(3).castToSet());
   Verify.assertSize(3, immutable.newWithout(2).castToSet());
   Verify.assertSize(3, immutable.newWithout(1).castToSet());
   Verify.assertSize(4, immutable.newWithout(0).castToSet());
 }
Beispiel #2
0
 private void assertUnchanged() {
   Verify.assertSize(6, this.list);
   Verify.assertNotContains("7", this.list);
   Assert.assertEquals(FastList.newListWith("1", "2", "3", "4", "5", "6"), this.list);
 }