directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From seelm...@apache.org
Subject svn commit: r764222 - /directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/name/FastLdapDnParserTest.java
Date Sat, 11 Apr 2009 17:25:09 GMT
Author: seelmann
Date: Sat Apr 11 17:25:08 2009
New Revision: 764222

URL: http://svn.apache.org/viewvc?rev=764222&view=rev
Log:
Some improvements

Modified:
    directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/name/FastLdapDnParserTest.java

Modified: directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/name/FastLdapDnParserTest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/name/FastLdapDnParserTest.java?rev=764222&r1=764221&r2=764222&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/name/FastLdapDnParserTest.java
(original)
+++ directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/name/FastLdapDnParserTest.java
Sat Apr 11 17:25:08 2009
@@ -92,24 +92,8 @@
         {
             // expected
         }
-        try
-        {
-            dnParser.parse( " a =" );
-            fail();
-        }
-        catch ( InvalidNameException ine )
-        {
-            // expected
-        }
-        try
-        {
-            dnParser.parse( " a = " );
-            fail();
-        }
-        catch ( InvalidNameException ine )
-        {
-            // expected
-        }
+        dnParser.parse( " a =" );
+        dnParser.parse( " a = " );
         dnParser.parse( " a = b" );
 
         // test DNs starting with an OID
@@ -158,26 +142,9 @@
         {
             // expected
         }
-        try
-        {
-            dnParser.parse( " 0.5=" );
-            fail();
-        }
-        catch ( InvalidNameException ine )
-        {
-            // expected
-        }
-        try
-        {
-            dnParser.parse( " 0.5 = " );
-            fail();
-        }
-        catch ( InvalidNameException ine )
-        {
-            // expected
-        }
+        dnParser.parse( " 0.5=" );
+        dnParser.parse( " 0.5 = " );
         dnParser.parse( " 0.5 = b" );
-
     }
 
 



Mime
View raw message