@Override @Test(expected = UnsupportedOperationException.class) public void makeString_with_collection_containing_self() { super.makeString_with_collection_containing_self(); MutableCollection<Object> collection = this.newWith(1, 2, 3); collection.add(collection); Assert.assertEquals(collection.toString(), '[' + collection.makeString() + ']'); }
@Override @Test(expected = UnsupportedOperationException.class) public void appendString_with_collection_containing_self() { super.appendString_with_collection_containing_self(); MutableCollection<Object> collection = this.newWith(1, 2, 3); collection.add(collection); Appendable builder = new StringBuilder(); collection.appendString(builder); Assert.assertEquals(collection.toString(), '[' + builder.toString() + ']'); }
@Override public void equalsAndHashCode() { super.equalsAndHashCode(); Verify.assertInstanceOf( UnmodifiableSortedBag.class, SerializeTestHelper.serializeDeserialize( this.newWith(Comparators.reverseNaturalOrder(), 1, 2, 3))); Verify.assertInstanceOf( UnmodifiableSortedBag.class, SerializeTestHelper.serializeDeserialize(this.newWith(1, 2, 3))); }
@Override @Test(expected = UnsupportedOperationException.class) public void toString_with_collection_containing_self() { super.toString_with_collection_containing_self(); MutableCollection<Object> collection = this.newWith(1); collection.add(collection); String simpleName = collection.getClass().getSimpleName(); String string = collection.toString(); Assert.assertTrue( ("[1, (this " + simpleName + ")]").equals(string) || ("[(this " + simpleName + "), 1]").equals(string)); }
@Override @Test(expected = UnsupportedOperationException.class) public void forEachWithOccurrences() { super.forEachWithOccurrences(); }
@Override @Test(expected = UnsupportedOperationException.class) public void withoutAll() { super.withoutAll(); }
@Override @Test(expected = UnsupportedOperationException.class) public void setOccurrences_throws() { super.setOccurrences_throws(); }
@Override @Test(expected = UnsupportedOperationException.class) public void removeOccurrences() { super.removeOccurrences(); }
@Override @Test(expected = UnsupportedOperationException.class) public void add() { super.add(); }
@Override @Test(expected = UnsupportedOperationException.class) public void retainAllIterable() { super.retainAllIterable(); }
@Override @Test(expected = UnsupportedOperationException.class) public void removeIfWith() { super.removeIfWith(); }