Add serialization tests

git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131760 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Stephen Colebourne 2004-06-01 22:55:54 +00:00
parent 42b98477bd
commit 936f931fdd
2 changed files with 33 additions and 3 deletions

View File

@ -33,7 +33,7 @@ import org.apache.commons.collections.BufferUnderflowException;
* implementation. * implementation.
* *
* @since Commons Collections 3.0 * @since Commons Collections 3.0
* @version $Revision: 1.4 $ * @version $Revision: 1.5 $
* *
* @author Janek Bogucki * @author Janek Bogucki
* @author Phil Steitz * @author Phil Steitz
@ -57,6 +57,10 @@ public class TestBlockingBuffer extends AbstractTestObject {
return BlockingBuffer.decorate(new MyBuffer()); return BlockingBuffer.decorate(new MyBuffer());
} }
public boolean isEqualsCheckable() {
return false;
}
//----------------------------------------------------------------------- //-----------------------------------------------------------------------
/** /**
* Tests {@link BlockingBuffer#get()} in combination with {@link BlockingBuffer#add()}. * Tests {@link BlockingBuffer#get()} in combination with {@link BlockingBuffer#add()}.
@ -480,4 +484,19 @@ public class TestBlockingBuffer extends AbstractTestObject {
Thread.currentThread().sleep(100); Thread.currentThread().sleep(100);
} catch (InterruptedException e) {} } catch (InterruptedException e) {}
} }
public String getCompatibilityVersion() {
return "3.1";
}
// public void testCreate() throws Exception {
// Buffer buffer = BlockingBuffer.decorate(new UnboundedFifoBuffer());
// writeExternalFormToDisk((java.io.Serializable) buffer, "D:/dev/collections/data/test/BlockingBuffer.emptyCollection.version3.1.obj");
// buffer = BlockingBuffer.decorate(new UnboundedFifoBuffer());
// buffer.add("A");
// buffer.add("B");
// buffer.add("C");
// writeExternalFormToDisk((java.io.Serializable) buffer, "D:/dev/collections/data/test/BlockingBuffer.fullCollection.version3.1.obj");
// }
} }

View File

@ -27,7 +27,7 @@ import org.apache.commons.collections.collection.AbstractTestCollection;
/** /**
* Test cases for UnboundedFifoBuffer. * Test cases for UnboundedFifoBuffer.
* *
* @version $Revision: 1.3 $ $Date: 2004/02/18 01:20:37 $ * @version $Revision: 1.4 $ $Date: 2004/06/01 22:55:54 $
* *
* @author Unknown * @author Unknown
*/ */
@ -143,5 +143,16 @@ public class TestUnboundedFifoBuffer extends AbstractTestCollection {
} }
fail(); fail();
} }
}
public String getCompatibilityVersion() {
return "3.1";
}
// public void testCreate() throws Exception {
// resetEmpty();
// writeExternalFormToDisk((java.io.Serializable) collection, "D:/dev/collections/data/test/UnboundedFifoBuffer.emptyCollection.version3.1.obj");
// resetFull();
// writeExternalFormToDisk((java.io.Serializable) collection, "D:/dev/collections/data/test/UnboundedFifoBuffer.fullCollection.version3.1.obj");
// }
}