directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: r291233 - /directory/shared/ldap/trunk/common/src/test/org/apache/ldap/common/subtree/SubtreeSpecificationParserTest.java
Date Sat, 24 Sep 2005 01:40:19 GMT
Author: akarasulu
Date: Fri Sep 23 18:40:16 2005
New Revision: 291233

URL: http://svn.apache.org/viewcvs?rev=291233&view=rev
Log:
fixing compile error where IOException is no longer thrown - also removed warnings

Modified:
    directory/shared/ldap/trunk/common/src/test/org/apache/ldap/common/subtree/SubtreeSpecificationParserTest.java

Modified: directory/shared/ldap/trunk/common/src/test/org/apache/ldap/common/subtree/SubtreeSpecificationParserTest.java
URL: http://svn.apache.org/viewcvs/directory/shared/ldap/trunk/common/src/test/org/apache/ldap/common/subtree/SubtreeSpecificationParserTest.java?rev=291233&r1=291232&r2=291233&view=diff
==============================================================================
--- directory/shared/ldap/trunk/common/src/test/org/apache/ldap/common/subtree/SubtreeSpecificationParserTest.java
(original)
+++ directory/shared/ldap/trunk/common/src/test/org/apache/ldap/common/subtree/SubtreeSpecificationParserTest.java
Fri Sep 23 18:40:16 2005
@@ -19,7 +19,6 @@
 package org.apache.ldap.common.subtree;
 
 
-import java.io.IOException;
 import java.text.ParseException;
 import java.util.ArrayList;
 import java.util.List;
@@ -32,7 +31,6 @@
 import org.apache.ldap.common.name.LdapName;
 import org.apache.ldap.common.name.SimpleNameComponentNormalizer;
 import org.apache.ldap.common.schema.DeepTrimNormalizer;
-import org.apache.ldap.common.subtree.SubtreeSpecification;
 
 
 /**
@@ -168,7 +166,7 @@
     {
         try
         {
-           SubtreeSpecification ss = parser.parse( INVALID_SPEC_WITH_BASE_AND_MISSING_WS
);
+           parser.parse( INVALID_SPEC_WITH_BASE_AND_MISSING_WS );
            fail( "testInvalidSpecWithBaseAndMissingWS() should never come here..." );
         }
         catch ( ParseException e )
@@ -324,17 +322,13 @@
     {    
         try
         {
-            SubtreeSpecification ss = parser.parse( INVALID_SPEC_WITH_WRONG_COMPONENT_ORDER
);
+            parser.parse( INVALID_SPEC_WITH_WRONG_COMPONENT_ORDER );
             fail( "testInvalidSpecWithWrongComponentOrder() should never come here..." );
         }
         catch ( ParseException e )
         {
             assertNotNull( e );
         }
-        catch ( IOException e )
-        {
-            assertNotNull( e );
-        }
     }
 
 
@@ -345,17 +339,13 @@
     {    
         try
         {
-            SubtreeSpecification ss = parser.parse( INVALID_SILLY_THING );
+            parser.parse( INVALID_SILLY_THING );
             fail( "testInvalidSillyThing() should never come here..." );
         }
         catch ( ParseException e )
         {
             assertNotNull( e );
         }
-        catch ( IOException e )
-        {
-            assertNotNull( e );
-        }
     }
     
     /**
@@ -439,10 +429,6 @@
                 result = parser.parse( specStr );
             }
             catch ( ParseException e )
-            {
-                e.printStackTrace();
-            }
-            catch ( IOException e )
             {
                 e.printStackTrace();
             }



Mime
View raw message