commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From scolebou...@apache.org
Subject cvs commit: jakarta-commons/collections/src/test/org/apache/commons/collections/buffer TestBlockingBuffer.java TestUnboundedFifoBuffer.java
Date Tue, 01 Jun 2004 22:55:54 GMT
scolebourne    2004/06/01 15:55:54

  Modified:    collections/src/test/org/apache/commons/collections/buffer
                        TestBlockingBuffer.java
                        TestUnboundedFifoBuffer.java
  Log:
  Add serialization tests
  
  Revision  Changes    Path
  1.5       +20 -1     jakarta-commons/collections/src/test/org/apache/commons/collections/buffer/TestBlockingBuffer.java
  
  Index: TestBlockingBuffer.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/collections/src/test/org/apache/commons/collections/buffer/TestBlockingBuffer.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- TestBlockingBuffer.java	18 Feb 2004 01:20:37 -0000	1.4
  +++ TestBlockingBuffer.java	1 Jun 2004 22:55:54 -0000	1.5
  @@ -57,6 +57,10 @@
           return BlockingBuffer.decorate(new MyBuffer());
       }
   
  +    public boolean isEqualsCheckable() {
  +        return false;
  +    }
  +
       //-----------------------------------------------------------------------
       /**
        *  Tests {@link BlockingBuffer#get()} in combination with {@link BlockingBuffer#add()}.
  @@ -480,4 +484,19 @@
               Thread.currentThread().sleep(100);
           } 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");
  +//    }
  +
   }
  
  
  
  1.4       +13 -2     jakarta-commons/collections/src/test/org/apache/commons/collections/buffer/TestUnboundedFifoBuffer.java
  
  Index: TestUnboundedFifoBuffer.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/collections/src/test/org/apache/commons/collections/buffer/TestUnboundedFifoBuffer.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- TestUnboundedFifoBuffer.java	18 Feb 2004 01:20:37 -0000	1.3
  +++ TestUnboundedFifoBuffer.java	1 Jun 2004 22:55:54 -0000	1.4
  @@ -143,5 +143,16 @@
           }
           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");
  +//    }
  +
  +}
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message