You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by ak...@apache.org on 2005/09/24 03:40:19 UTC

svn commit: r291233 - /directory/shared/ldap/trunk/common/src/test/org/apache/ldap/common/subtree/SubtreeSpecificationParserTest.java

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();
             }