geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@apache.org
Subject cvs commit: incubator-geronimo/modules/network/src/test/org/apache/geronimo/network/protocol PacketStreamTest.java
Date Sun, 21 Mar 2004 14:27:10 GMT
adc         2004/03/21 06:27:09

  Modified:    modules/network/src/test/org/apache/geronimo/network/protocol
                        PacketStreamTest.java
  Log:
  It would be nice it I tested my code before I checked it it...
  
  Revision  Changes    Path
  1.3       +7 -3      incubator-geronimo/modules/network/src/test/org/apache/geronimo/network/protocol/PacketStreamTest.java
  
  Index: PacketStreamTest.java
  ===================================================================
  RCS file: /home/cvs/incubator-geronimo/modules/network/src/test/org/apache/geronimo/network/protocol/PacketStreamTest.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- PacketStreamTest.java	20 Mar 2004 23:03:06 -0000	1.2
  +++ PacketStreamTest.java	21 Mar 2004 14:27:09 -0000	1.3
  @@ -33,13 +33,16 @@
       Latch startLatch;
       boolean failed;
   
  +    public void testDummy() throws Exception { }
  +
       public void testStream() throws Exception {
           new Thread(new WriterThread((short) 1024), "Test Writer").start();
   
           PacketInputStream in = new PacketInputStream(eup);
  -        ObjectInputStream objIn = new ObjectInputStream(in);
   
           startLatch.release();
  +
  +        ObjectInputStream objIn = new ObjectInputStream(in);
           String msg = (String) objIn.readObject();
   
           assertEquals(msg, "Hello World!");
  @@ -50,9 +53,10 @@
           new Thread(new WriterThread((short) 2), "Test Writer").start();
   
           PacketInputStream in = new PacketInputStream(eup);
  -        ObjectInputStream objIn = new ObjectInputStream(in);
   
           startLatch.release();
  +
  +        ObjectInputStream objIn = new ObjectInputStream(in);
           String msg = (String) objIn.readObject();
   
           assertEquals(msg, "Hello World!");
  
  
  

Mime
View raw message