git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1026194 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Sebastian Bazley 2010-10-22 01:29:16 +00:00
parent f46321a44d
commit 1ae1850534
2 changed files with 3 additions and 3 deletions

View File

@ -40,7 +40,7 @@ public class TestTreeBag<T> extends AbstractTestSortedBag<T> {
// TODO: Generics (for example... is this even needed?)
public void testCollections265() {
Bag bag = new TreeBag();
Bag<Object> bag = new TreeBag<Object>();
try {
bag.add(new Object());
fail("IllegalArgumentException expected");

View File

@ -433,9 +433,9 @@ public class TestUnboundedFifoBuffer<E> extends AbstractTestCollection<E> {
//-----------------------------------------------------------------------
public void testCollections220() throws Exception {
UnboundedFifoBuffer buffer = new UnboundedFifoBuffer();
UnboundedFifoBuffer<String> buffer = new UnboundedFifoBuffer<String>();
buffer = (UnboundedFifoBuffer) serializeDeserialize(buffer);
buffer = (UnboundedFifoBuffer<String>) serializeDeserialize(buffer);
// test size() gets incremented
buffer.add("Foo");