directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From trus...@apache.org
Subject svn commit: r469766 - /directory/trunks/apacheds/mitosis/src/test/java/org/apache/directory/mitosis/common/SimpleCSNTest.java
Date Wed, 01 Nov 2006 03:17:17 GMT
Author: trustin
Date: Tue Oct 31 19:17:17 2006
New Revision: 469766

URL: http://svn.apache.org/viewvc?view=rev&rev=469766
Log:
Fixed a bug that the SimpleCSNTest fails when assertion is enabled

Modified:
    directory/trunks/apacheds/mitosis/src/test/java/org/apache/directory/mitosis/common/SimpleCSNTest.java

Modified: directory/trunks/apacheds/mitosis/src/test/java/org/apache/directory/mitosis/common/SimpleCSNTest.java
URL: http://svn.apache.org/viewvc/directory/trunks/apacheds/mitosis/src/test/java/org/apache/directory/mitosis/common/SimpleCSNTest.java?view=diff&rev=469766&r1=469765&r2=469766
==============================================================================
--- directory/trunks/apacheds/mitosis/src/test/java/org/apache/directory/mitosis/common/SimpleCSNTest.java
(original)
+++ directory/trunks/apacheds/mitosis/src/test/java/org/apache/directory/mitosis/common/SimpleCSNTest.java
Tue Oct 31 19:17:17 2006
@@ -48,6 +48,10 @@
             new SimpleCSN( "" );
             fail();
         }
+        catch ( AssertionError ae )
+        {
+            assertTrue( true );
+        }
         catch ( InvalidCSNException ice )
         {
             assertTrue( true );
@@ -61,6 +65,10 @@
             new SimpleCSN( "123" );
             fail();
         }
+        catch ( AssertionError ae )
+        {
+            assertTrue( true );
+        }
         catch ( InvalidCSNException ice )
         {
             assertTrue( true );
@@ -74,6 +82,10 @@
             new SimpleCSN( "zzz:abc:1" );
             fail();
         }
+        catch ( AssertionError ae )
+        {
+            assertTrue( true );
+        }
         catch ( InvalidCSNException ice )
         {
             assertTrue( true );
@@ -87,6 +99,10 @@
             new SimpleCSN( ":abc:1" );
             fail();
         }
+        catch ( AssertionError ae )
+        {
+            assertTrue( true );
+        }
         catch ( InvalidCSNException ice )
         {
             assertTrue( true );
@@ -100,6 +116,10 @@
             new SimpleCSN( "123:*:1" );
             fail();
         }
+        catch ( AssertionError ae )
+        {
+            assertTrue( true );
+        }
         catch ( InvalidCSNException ice )
         {
             assertTrue( true );
@@ -113,6 +133,10 @@
             new SimpleCSN( "123::1" );
             fail();
         }
+        catch ( AssertionError ae )
+        {
+            assertTrue( true );
+        }
         catch ( InvalidCSNException ice )
         {
             assertTrue( true );
@@ -126,6 +150,10 @@
             new SimpleCSN( "123:abc:zzz" );
             fail();
         }
+        catch ( AssertionError ae )
+        {
+            assertTrue( true );
+        }
         catch ( InvalidCSNException ice )
         {
             assertTrue( true );
@@ -139,6 +167,10 @@
             new SimpleCSN( "123:abc:" );
             fail();
         }
+        catch ( AssertionError ae )
+        {
+            assertTrue( true );
+        }
         catch ( InvalidCSNException ice )
         {
             assertTrue( true );
@@ -151,6 +183,10 @@
         {
             new SimpleCSN( "123:abc" );
             fail();
+        }
+        catch ( AssertionError ae )
+        {
+            assertTrue( true );
         }
         catch ( InvalidCSNException ice )
         {



Mime
View raw message