You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by tr...@apache.org on 2006/11/01 04:17:17 UTC

svn commit: r469766 - /directory/trunks/apacheds/mitosis/src/test/java/org/apache/directory/mitosis/common/SimpleCSNTest.java

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 )
         {