directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From trus...@apache.org
Subject svn commit: r371293 - /directory/sandbox/trustin/mina-spi/core/src/test/java/org/apache/mina/transport/AbstractBindTest.java
Date Sun, 22 Jan 2006 13:57:55 GMT
Author: trustin
Date: Sun Jan 22 05:57:52 2006
New Revision: 371293

URL: http://svn.apache.org/viewcvs?rev=371293&view=rev
Log:
Fixed failing tests due to the change on unbind behavior

Modified:
    directory/sandbox/trustin/mina-spi/core/src/test/java/org/apache/mina/transport/AbstractBindTest.java

Modified: directory/sandbox/trustin/mina-spi/core/src/test/java/org/apache/mina/transport/AbstractBindTest.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/trustin/mina-spi/core/src/test/java/org/apache/mina/transport/AbstractBindTest.java?rev=371293&r1=371292&r2=371293&view=diff
==============================================================================
--- directory/sandbox/trustin/mina-spi/core/src/test/java/org/apache/mina/transport/AbstractBindTest.java
(original)
+++ directory/sandbox/trustin/mina-spi/core/src/test/java/org/apache/mina/transport/AbstractBindTest.java
Sun Jan 22 05:57:52 2006
@@ -111,18 +111,11 @@
     {
         bind( false );
         
-        // this should succeed
+        // this should succeed.
         IoService.unbind( createAddress( port, false ) );
         
-        try
-        {
-            // this should fail
-            IoService.unbind( createAddress( port, false ) );
-            Assert.fail( "Exception is not thrown" );
-        }
-        catch( Exception e )
-        {
-        }
+        // this should succeed, too.
+        IoService.unbind( createAddress( port, false ) );
     }
     
     public void testManyTimes() throws IOException



Mime
View raw message