directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r575005 - in /directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap: codec/add/ codec/compare/ codec/del/ codec/extended/ codec/extended/operations/ codec/modify/ codec/search/ codec/search/controls/ codec/util/ filter/...
Date Wed, 12 Sep 2007 16:18:05 GMT
Author: elecharny
Date: Wed Sep 12 09:18:00 2007
New Revision: 575005

URL: http://svn.apache.org/viewvc?rev=575005&view=rev
Log:
Removed all the useless "throws" clause to get rid of some warnings

Modified:
    directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/add/AddRequestTest.java
    directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/compare/CompareRequestTest.java
    directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/del/DelRequestTest.java
    directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/extended/ExtendedRequestTest.java
    directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/extended/ExtendedResponseTest.java
    directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/extended/operations/GracefulDisconnectTest.java
    directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/extended/operations/GracefulShutdownTest.java
    directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/extended/operations/StoredProcedureTest.java
    directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/modify/ModifyRequestTest.java
    directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/search/SearchResultEntryTest.java
    directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/search/SearchResultReferenceTest.java
    directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/search/controls/EntryChangeControlTest.java
    directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/search/controls/PSearchControlTest.java
    directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/search/controls/SubEntryControlTest.java
    directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/util/LdapUrlTest.java
    directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/filter/FilterParserImplTest.java
    directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/ldif/LdifReaderTest.java
    directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/message/ArrayNamingEnumerationTest.java
    directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/message/ModifyRequestImplTest.java
    directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/name/LdapDNTest.java
    directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/parser/ComparatorDescriptionSchemaParserTest.java
    directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/parser/NormalizerDescriptionSchemaParserTest.java
    directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/parser/SyntaxCheckerDescriptionSchemaParserTest.java
    directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/util/AttributeSerializerUtilsTest.java

Modified: directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/add/AddRequestTest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/add/AddRequestTest.java?rev=575005&r1=575004&r2=575005&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/add/AddRequestTest.java (original)
+++ directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/add/AddRequestTest.java Wed Sep 12 09:18:00 2007
@@ -179,7 +179,7 @@
     /**
      * Test the decoding of a AddRequest with a null body
      */
-    public void testDecodeAddRequestNullBody() throws NamingException
+    public void testDecodeAddRequestNullBody()
     {
         Asn1Decoder ldapDecoder = new LdapDecoder();
 
@@ -215,7 +215,7 @@
     /**
      * Test the decoding of a AddRequest with a null entry
      */
-    public void testDecodeAddRequestNullEntry() throws NamingException
+    public void testDecodeAddRequestNullEntry()
     {
         Asn1Decoder ldapDecoder = new LdapDecoder();
 
@@ -273,7 +273,7 @@
     /**
      * Test the decoding of a AddRequest
      */
-    public void testDecodeAddRequestbadDN() throws NamingException
+    public void testDecodeAddRequestbadDN()
     {
         Asn1Decoder ldapDecoder = new LdapDecoder();
 
@@ -333,7 +333,7 @@
     /**
      * Test the decoding of a AddRequest with a null attributeList
      */
-    public void testDecodeAddRequestNullAttributes() throws NamingException
+    public void testDecodeAddRequestNullAttributes()
     {
         Asn1Decoder ldapDecoder = new LdapDecoder();
 
@@ -376,7 +376,7 @@
     /**
      * Test the decoding of a AddRequest with a empty attributeList
      */
-    public void testDecodeAddRequestNullAttributeList() throws NamingException
+    public void testDecodeAddRequestNullAttributeList()
     {
         Asn1Decoder ldapDecoder = new LdapDecoder();
 
@@ -420,7 +420,7 @@
     /**
      * Test the decoding of a AddRequest with a empty attributeList
      */
-    public void testDecodeAddRequestNullType() throws NamingException
+    public void testDecodeAddRequestNullType()
     {
         Asn1Decoder ldapDecoder = new LdapDecoder();
 
@@ -468,7 +468,7 @@
     /**
      * Test the decoding of a AddRequest with a empty attributeList
      */
-    public void testDecodeAddRequestNoVals() throws NamingException
+    public void testDecodeAddRequestNoVals()
     {
         Asn1Decoder ldapDecoder = new LdapDecoder();
 
@@ -513,7 +513,7 @@
     /**
      * Test the decoding of a AddRequest with a empty attributeList
      */
-    public void testDecodeAddRequestNullVals() throws NamingException
+    public void testDecodeAddRequestNullVals()
     {
         Asn1Decoder ldapDecoder = new LdapDecoder();
 

Modified: directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/compare/CompareRequestTest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/compare/CompareRequestTest.java?rev=575005&r1=575004&r2=575005&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/compare/CompareRequestTest.java (original)
+++ directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/compare/CompareRequestTest.java Wed Sep 12 09:18:00 2007
@@ -23,8 +23,6 @@
 import java.nio.ByteBuffer;
 import java.util.List;
 
-import javax.naming.NamingException;
-
 import org.apache.directory.shared.asn1.ber.Asn1Decoder;
 import org.apache.directory.shared.asn1.ber.IAsn1Container;
 import org.apache.directory.shared.asn1.codec.DecoderException;
@@ -54,7 +52,7 @@
     /**
      * Test the decoding of a full CompareRequest
      */
-    public void testDecodeCompareRequestSuccess() throws NamingException
+    public void testDecodeCompareRequestSuccess()
     {
         Asn1Decoder ldapDecoder = new LdapDecoder();
 
@@ -127,7 +125,7 @@
     /**
      * Test the decoding of an empty CompareRequest
      */
-    public void testDecodeCompareRequestEmptyRequest() throws NamingException
+    public void testDecodeCompareRequestEmptyRequest()
     {
         Asn1Decoder ldapDecoder = new LdapDecoder();
 
@@ -162,7 +160,7 @@
     /**
      * Test the decoding of an empty entry CompareRequest
      */
-    public void testDecodeCompareRequestEmptyEntry() throws NamingException
+    public void testDecodeCompareRequestEmptyEntry()
     {
         Asn1Decoder ldapDecoder = new LdapDecoder();
 
@@ -204,7 +202,7 @@
     /**
      * Test the decoding of an empty ava
      */
-    public void testDecodeCompareRequestEmptyAVA() throws NamingException
+    public void testDecodeCompareRequestEmptyAVA()
     {
         Asn1Decoder ldapDecoder = new LdapDecoder();
 
@@ -244,7 +242,7 @@
     /**
      * Test the decoding of an empty ava
      */
-    public void testDecodeCompareRequestInvalidDN() throws NamingException
+    public void testDecodeCompareRequestInvalidDN()
     {
         Asn1Decoder ldapDecoder = new LdapDecoder();
 
@@ -289,7 +287,7 @@
     /**
      * Test the decoding of an empty attributeDesc ava
      */
-    public void testDecodeCompareRequestEmptyAttributeDesc() throws NamingException
+    public void testDecodeCompareRequestEmptyAttributeDesc()
     {
         Asn1Decoder ldapDecoder = new LdapDecoder();
 
@@ -335,7 +333,7 @@
     /**
      * Test the decoding of an empty attributeValue ava
      */
-    public void testDecodeCompareRequestEmptyAttributeValue() throws NamingException
+    public void testDecodeCompareRequestEmptyAttributeValue()
     {
         Asn1Decoder ldapDecoder = new LdapDecoder();
 
@@ -408,7 +406,7 @@
     /**
      * Test the decoding of an compare request with controls
      */
-    public void testDecodeCompareRequestWithControls() throws NamingException
+    public void testDecodeCompareRequestWithControls()
     {
         Asn1Decoder ldapDecoder = new LdapDecoder();
 

Modified: directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/del/DelRequestTest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/del/DelRequestTest.java?rev=575005&r1=575004&r2=575005&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/del/DelRequestTest.java (original)
+++ directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/del/DelRequestTest.java Wed Sep 12 09:18:00 2007
@@ -23,8 +23,6 @@
 import java.nio.ByteBuffer;
 import java.util.List;
 
-import javax.naming.NamingException;
-
 import org.apache.directory.shared.asn1.ber.Asn1Decoder;
 import org.apache.directory.shared.asn1.ber.IAsn1Container;
 import org.apache.directory.shared.asn1.codec.DecoderException;
@@ -53,7 +51,7 @@
     /**
      * Test the decoding of a full DelRequest
      */
-    public void testDecodeDelRequestSuccess() throws NamingException
+    public void testDecodeDelRequestSuccess()
     {
         Asn1Decoder ldapDecoder = new LdapDecoder();
 
@@ -116,7 +114,7 @@
     /**
      * Test the decoding of a full DelRequest
      */
-    public void testDecodeDelRequestBadDN() throws NamingException
+    public void testDecodeDelRequestBadDN()
     {
         Asn1Decoder ldapDecoder = new LdapDecoder();
 
@@ -158,7 +156,7 @@
     /**
      * Test the decoding of an empty DelRequest
      */
-    public void testDecodeDelRequestEmpty() throws NamingException
+    public void testDecodeDelRequestEmpty()
     {
         Asn1Decoder ldapDecoder = new LdapDecoder();
 
@@ -194,7 +192,7 @@
     /**
      * Test the decoding of a full DelRequest with controls
      */
-    public void testDecodeDelRequestSuccessWithControls() throws NamingException
+    public void testDecodeDelRequestSuccessWithControls()
     {
         Asn1Decoder ldapDecoder = new LdapDecoder();
 

Modified: directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/extended/ExtendedRequestTest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/extended/ExtendedRequestTest.java?rev=575005&r1=575004&r2=575005&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/extended/ExtendedRequestTest.java (original)
+++ directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/extended/ExtendedRequestTest.java Wed Sep 12 09:18:00 2007
@@ -23,8 +23,6 @@
 import java.nio.ByteBuffer;
 import java.util.List;
 
-import javax.naming.NamingException;
-
 import org.apache.directory.shared.asn1.ber.Asn1Decoder;
 import org.apache.directory.shared.asn1.ber.IAsn1Container;
 import org.apache.directory.shared.asn1.codec.DecoderException;
@@ -49,7 +47,7 @@
     /**
      * Test the decoding of a full ExtendedRequest
      */
-    public void testDecodeExtendedRequestSuccess() throws NamingException
+    public void testDecodeExtendedRequestSuccess()
     {
         Asn1Decoder ldapDecoder = new LdapDecoder();
 
@@ -115,7 +113,7 @@
     /**
      * Test the decoding of a full ExtendedRequest with controls
      */
-    public void testDecodeExtendedRequestWithControls() throws NamingException
+    public void testDecodeExtendedRequestWithControls()
     {
         Asn1Decoder ldapDecoder = new LdapDecoder();
 
@@ -196,7 +194,7 @@
      * Test the decoding of a full ExtendedRequest with no value and with
      * controls
      */
-    public void testDecodeExtendedRequestNoValueWithControls() throws NamingException
+    public void testDecodeExtendedRequestNoValueWithControls()
     {
         Asn1Decoder ldapDecoder = new LdapDecoder();
 
@@ -276,7 +274,7 @@
     /**
      * Test the decoding of an empty ExtendedRequest
      */
-    public void testDecodeExtendedRequestEmpty() throws NamingException
+    public void testDecodeExtendedRequestEmpty()
     {
         Asn1Decoder ldapDecoder = new LdapDecoder();
 
@@ -311,7 +309,7 @@
     /**
      * Test the decoding of an empty OID
      */
-    public void testDecodeEmptyOID() throws NamingException
+    public void testDecodeEmptyOID()
     {
         Asn1Decoder ldapDecoder = new LdapDecoder();
 
@@ -346,7 +344,7 @@
     /**
      * Test the decoding of a bad name 
      */
-    public void testDecodeExtendedBadRequestName() throws NamingException
+    public void testDecodeExtendedBadRequestName()
     {
         Asn1Decoder ldapDecoder = new LdapDecoder();
 
@@ -383,7 +381,7 @@
     /**
      * Test the decoding of a name only ExtendedRequest
      */
-    public void testDecodeExtendedRequestName() throws NamingException
+    public void testDecodeExtendedRequestName()
     {
         Asn1Decoder ldapDecoder = new LdapDecoder();
 
@@ -447,7 +445,7 @@
     /**
      * Test the decoding of an empty name ExtendedRequest
      */
-    public void testDecodeExtendedRequestEmptyName() throws NamingException
+    public void testDecodeExtendedRequestEmptyName()
     {
         Asn1Decoder ldapDecoder = new LdapDecoder();
 

Modified: directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/extended/ExtendedResponseTest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/extended/ExtendedResponseTest.java?rev=575005&r1=575004&r2=575005&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/extended/ExtendedResponseTest.java (original)
+++ directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/extended/ExtendedResponseTest.java Wed Sep 12 09:18:00 2007
@@ -23,8 +23,6 @@
 import java.nio.ByteBuffer;
 import java.util.List;
 
-import javax.naming.NamingException;
-
 import org.apache.directory.shared.asn1.ber.Asn1Decoder;
 import org.apache.directory.shared.asn1.ber.IAsn1Container;
 import org.apache.directory.shared.asn1.codec.DecoderException;
@@ -50,7 +48,7 @@
     /**
      * Test the decoding of a full ExtendedResponse
      */
-    public void testDecodeExtendedResponseSuccess() throws NamingException
+    public void testDecodeExtendedResponseSuccess()
     {
         Asn1Decoder ldapDecoder = new LdapDecoder();
 
@@ -125,7 +123,7 @@
     /**
      * Test the decoding of a full ExtendedResponse with controls
      */
-    public void testDecodeExtendedResponseSuccessWithControls() throws NamingException
+    public void testDecodeExtendedResponseSuccessWithControls()
     {
         Asn1Decoder ldapDecoder = new LdapDecoder();
 
@@ -219,7 +217,7 @@
     /**
      * Test the decoding of a ExtendedRequest with no name
      */
-    public void testDecodeExtendedRequestNoName() throws NamingException
+    public void testDecodeExtendedRequestNoName()
     {
         Asn1Decoder ldapDecoder = new LdapDecoder();
 
@@ -290,7 +288,7 @@
     /**
      * Test the decoding of a ExtendedRequest with no name and a control
      */
-    public void testDecodeExtendedRequestNoNameWithControls() throws NamingException
+    public void testDecodeExtendedRequestNoNameWithControls()
     {
         Asn1Decoder ldapDecoder = new LdapDecoder();
 
@@ -372,7 +370,7 @@
     /**
      * Test the decoding of an empty ExtendedResponse
      */
-    public void testDecodeExtendedResponseEmpty() throws NamingException
+    public void testDecodeExtendedResponseEmpty()
     {
         Asn1Decoder ldapDecoder = new LdapDecoder();
 
@@ -406,7 +404,7 @@
     /**
      * Test the decoding of an ExtendedResponse with an empty ResponseName
      */
-    public void testDecodeExtendedResponseEmptyResponseName() throws NamingException
+    public void testDecodeExtendedResponseEmptyResponseName()
     {
         Asn1Decoder ldapDecoder = new LdapDecoder();
 
@@ -449,7 +447,7 @@
     /**
      * Test the decoding of an ExtendedResponse with a bad responseName
      */
-    public void testDecodeExtendedResponseBadOIDResponseName() throws NamingException
+    public void testDecodeExtendedResponseBadOIDResponseName()
     {
         Asn1Decoder ldapDecoder = new LdapDecoder();
 
@@ -492,7 +490,7 @@
     /**
      * Test the decoding of an ExtendedResponse with no response
      */
-    public void testDecodeExtendedResponseNoResponse() throws NamingException
+    public void testDecodeExtendedResponseNoResponse()
     {
         Asn1Decoder ldapDecoder = new LdapDecoder();
 
@@ -565,7 +563,7 @@
     /**
      * Test the decoding of an ExtendedResponse with no response with controls
      */
-    public void testDecodeExtendedResponseNoResponseWithControls() throws NamingException
+    public void testDecodeExtendedResponseNoResponseWithControls()
     {
         Asn1Decoder ldapDecoder = new LdapDecoder();
 
@@ -650,7 +648,7 @@
     /**
      * Test the decoding of an ExtendedResponse with an empty response
      */
-    public void testDecodeExtendedResponseEmptyResponse() throws NamingException
+    public void testDecodeExtendedResponseEmptyResponse()
     {
         Asn1Decoder ldapDecoder = new LdapDecoder();
 
@@ -725,7 +723,7 @@
      * Test the decoding of an ExtendedResponse with an empty response with
      * controls
      */
-    public void testDecodeExtendedResponseEmptyResponseWithControls() throws NamingException
+    public void testDecodeExtendedResponseEmptyResponseWithControls()
     {
         Asn1Decoder ldapDecoder = new LdapDecoder();
 

Modified: directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/extended/operations/GracefulDisconnectTest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/extended/operations/GracefulDisconnectTest.java?rev=575005&r1=575004&r2=575005&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/extended/operations/GracefulDisconnectTest.java (original)
+++ directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/extended/operations/GracefulDisconnectTest.java Wed Sep 12 09:18:00 2007
@@ -22,8 +22,6 @@
 
 import java.nio.ByteBuffer;
 
-import javax.naming.NamingException;
-
 import org.apache.directory.shared.asn1.ber.Asn1Decoder;
 import org.apache.directory.shared.asn1.codec.DecoderException;
 import org.apache.directory.shared.asn1.codec.EncoderException;
@@ -46,7 +44,7 @@
     /**
      * Test the decoding of a GracefulDisconnect
      */
-    public void testDecodeGracefulDisconnectSuccess() throws NamingException
+    public void testDecodeGracefulDisconnectSuccess()
     {
         Asn1Decoder decoder = new GracefulDisconnectDecoder();
         ByteBuffer stream = ByteBuffer.allocate( 0x70 );
@@ -110,7 +108,7 @@
     /**
      * Test the decoding of a GracefulDisconnect with a timeOffline only
      */
-    public void testDecodeGracefulDisconnectTimeOffline() throws NamingException
+    public void testDecodeGracefulDisconnectTimeOffline()
     {
         Asn1Decoder decoder = new GracefulDisconnectDecoder();
         ByteBuffer bb = ByteBuffer.allocate( 0x05 );
@@ -162,7 +160,7 @@
     /**
      * Test the decoding of a GracefulDisconnect with a delay only
      */
-    public void testDecodeGracefulDisconnectDelay() throws NamingException
+    public void testDecodeGracefulDisconnectDelay()
     {
         Asn1Decoder decoder = new GracefulDisconnectDecoder();
         ByteBuffer bb = ByteBuffer.allocate( 0x05 );
@@ -215,7 +213,7 @@
     /**
      * Test the decoding of a GracefulDisconnect with a timeOffline and a delay
      */
-    public void testDecodeGracefulDisconnectTimeOfflineDelay() throws NamingException
+    public void testDecodeGracefulDisconnectTimeOfflineDelay()
     {
         Asn1Decoder decoder = new GracefulDisconnectDecoder();
         ByteBuffer bb = ByteBuffer.allocate( 0x08 );
@@ -269,7 +267,7 @@
     /**
      * Test the decoding of a GracefulDisconnect with replicatedContexts only
      */
-    public void testDecodeGracefulDisconnectReplicatedContextsOnly() throws NamingException
+    public void testDecodeGracefulDisconnectReplicatedContextsOnly()
     {
         Asn1Decoder decoder = new GracefulDisconnectDecoder();
         ByteBuffer stream = ByteBuffer.allocate( 0x6A );
@@ -333,7 +331,7 @@
     /**
      * Test the decoding of a empty GracefulDisconnect
      */
-    public void testDecodeGracefulDisconnectEmpty() throws NamingException
+    public void testDecodeGracefulDisconnectEmpty()
     {
         Asn1Decoder decoder = new GracefulDisconnectDecoder();
         ByteBuffer bb = ByteBuffer.allocate( 0x02 );
@@ -386,7 +384,7 @@
     /**
      * Test the decoding of a GracefulDisconnect with a timeOffline off limit
      */
-    public void testDecodeGracefulDisconnectTimeOfflineOffLimit() throws NamingException
+    public void testDecodeGracefulDisconnectTimeOfflineOffLimit()
     {
         Asn1Decoder decoder = new GracefulDisconnectDecoder();
         ByteBuffer bb = ByteBuffer.allocate( 0x0b );
@@ -416,7 +414,7 @@
     /**
      * Test the decoding of a GracefulDisconnect with a delay off limit
      */
-    public void testDecodeGracefulDisconnectDelayOffLimit() throws NamingException
+    public void testDecodeGracefulDisconnectDelayOffLimit()
     {
         Asn1Decoder decoder = new GracefulDisconnectDecoder();
         ByteBuffer bb = ByteBuffer.allocate( 0x0b );
@@ -449,7 +447,7 @@
     /**
      * Test the decoding of a GracefulDisconnect with an empty TimeOffline
      */
-    public void testDecodeGracefulDisconnectTimeOfflineEmpty() throws NamingException
+    public void testDecodeGracefulDisconnectTimeOfflineEmpty()
     {
         Asn1Decoder decoder = new GracefulDisconnectDecoder();
         ByteBuffer bb = ByteBuffer.allocate( 0x0b );
@@ -478,7 +476,7 @@
     /**
      * Test the decoding of a GracefulDisconnect with an empty delay
      */
-    public void testDecodeGracefulDisconnectDelayEmpty() throws NamingException
+    public void testDecodeGracefulDisconnectDelayEmpty()
     {
         Asn1Decoder decoder = new GracefulDisconnectDecoder();
         ByteBuffer bb = ByteBuffer.allocate( 0x0b );
@@ -508,7 +506,7 @@
      * Test the decoding of a GracefulDisconnect with an empty replicated
      * contexts
      */
-    public void testDecodeGracefulDisconnectReplicatedContextsEmpty() throws NamingException
+    public void testDecodeGracefulDisconnectReplicatedContextsEmpty()
     {
         Asn1Decoder decoder = new GracefulDisconnectDecoder();
         ByteBuffer bb = ByteBuffer.allocate( 0x04 );
@@ -538,7 +536,7 @@
      * Test the decoding of a GracefulDisconnect with an invalid replicated
      * context
      */
-    public void testDecodeGracefulDisconnectReplicatedContextsInvalid() throws NamingException
+    public void testDecodeGracefulDisconnectReplicatedContextsInvalid()
     {
         Asn1Decoder decoder = new GracefulDisconnectDecoder();
         ByteBuffer bb = ByteBuffer.allocate( 0x06 );

Modified: directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/extended/operations/GracefulShutdownTest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/extended/operations/GracefulShutdownTest.java?rev=575005&r1=575004&r2=575005&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/extended/operations/GracefulShutdownTest.java (original)
+++ directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/extended/operations/GracefulShutdownTest.java Wed Sep 12 09:18:00 2007
@@ -22,8 +22,6 @@
 
 import java.nio.ByteBuffer;
 
-import javax.naming.NamingException;
-
 import org.apache.directory.shared.asn1.ber.Asn1Decoder;
 import org.apache.directory.shared.asn1.codec.DecoderException;
 import org.apache.directory.shared.asn1.codec.EncoderException;
@@ -46,7 +44,7 @@
     /**
      * Test the decoding of a GracefulShutdown
      */
-    public void testDecodeGracefulShutdownSuccess() throws NamingException
+    public void testDecodeGracefulShutdownSuccess()
     {
         Asn1Decoder decoder = new LdapDecoder();
         ByteBuffer bb = ByteBuffer.allocate( 0x08 );
@@ -100,7 +98,7 @@
     /**
      * Test the decoding of a GracefulShutdown with a timeOffline only
      */
-    public void testDecodeGracefulShutdownTimeOffline() throws NamingException
+    public void testDecodeGracefulShutdownTimeOffline()
     {
         Asn1Decoder decoder = new LdapDecoder();
         ByteBuffer bb = ByteBuffer.allocate( 0x05 );
@@ -151,7 +149,7 @@
     /**
      * Test the decoding of a GracefulShutdown with a delay only
      */
-    public void testDecodeGracefulShutdownDelay() throws NamingException
+    public void testDecodeGracefulShutdownDelay()
     {
         Asn1Decoder decoder = new LdapDecoder();
         ByteBuffer bb = ByteBuffer.allocate( 0x05 );
@@ -203,7 +201,7 @@
     /**
      * Test the decoding of a empty GracefulShutdown
      */
-    public void testDecodeGracefulShutdownEmpty() throws NamingException
+    public void testDecodeGracefulShutdownEmpty()
     {
         Asn1Decoder decoder = new LdapDecoder();
         ByteBuffer bb = ByteBuffer.allocate( 0x02 );
@@ -253,7 +251,7 @@
     /**
      * Test the decoding of a GracefulShutdown with a delay above 128
      */
-    public void testDecodeGracefulShutdownDelayHigh() throws NamingException
+    public void testDecodeGracefulShutdownDelayHigh()
     {
         Asn1Decoder decoder = new LdapDecoder();
         ByteBuffer bb = ByteBuffer.allocate( 0x06 );
@@ -306,7 +304,7 @@
     /**
      * Test the decoding of a GracefulShutdown with a delay equals 32767
      */
-    public void testDecodeGracefulShutdownDelay32767() throws NamingException
+    public void testDecodeGracefulShutdownDelay32767()
     {
         Asn1Decoder decoder = new LdapDecoder();
         ByteBuffer bb = ByteBuffer.allocate( 0x06 );
@@ -359,7 +357,7 @@
     /**
      * Test the decoding of a GracefulShutdown with a delay above 32768
      */
-    public void testDecodeGracefulShutdownDelay32768() throws NamingException
+    public void testDecodeGracefulShutdownDelay32768()
     {
         Asn1Decoder decoder = new LdapDecoder();
         ByteBuffer bb = ByteBuffer.allocate( 0x07 );
@@ -416,7 +414,7 @@
     /**
      * Test the decoding of a GracefulShutdown with a timeOffline off limit
      */
-    public void testDecodeGracefulShutdownTimeOfflineOffLimit() throws NamingException
+    public void testDecodeGracefulShutdownTimeOfflineOffLimit()
     {
         Asn1Decoder decoder = new LdapDecoder();
         ByteBuffer bb = ByteBuffer.allocate( 0x06 );
@@ -446,7 +444,7 @@
     /**
      * Test the decoding of a GracefulShutdown with a delay off limit
      */
-    public void testDecodeGracefulShutdownDelayOffLimit() throws NamingException
+    public void testDecodeGracefulShutdownDelayOffLimit()
     {
         Asn1Decoder decoder = new LdapDecoder();
         ByteBuffer bb = ByteBuffer.allocate( 0x0b );
@@ -479,7 +477,7 @@
     /**
      * Test the decoding of a GracefulShutdown with an empty TimeOffline
      */
-    public void testDecodeGracefulShutdownTimeOfflineEmpty() throws NamingException
+    public void testDecodeGracefulShutdownTimeOfflineEmpty()
     {
         Asn1Decoder decoder = new LdapDecoder();
         ByteBuffer bb = ByteBuffer.allocate( 0x0b );
@@ -508,7 +506,7 @@
     /**
      * Test the decoding of a GracefulShutdown with an empty delay
      */
-    public void testDecodeGracefulShutdownDelayEmpty() throws NamingException
+    public void testDecodeGracefulShutdownDelayEmpty()
     {
         Asn1Decoder decoder = new LdapDecoder();
         ByteBuffer bb = ByteBuffer.allocate( 0x0b );

Modified: directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/extended/operations/StoredProcedureTest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/extended/operations/StoredProcedureTest.java?rev=575005&r1=575004&r2=575005&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/extended/operations/StoredProcedureTest.java (original)
+++ directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/extended/operations/StoredProcedureTest.java Wed Sep 12 09:18:00 2007
@@ -23,8 +23,6 @@
 
 import java.nio.ByteBuffer;
 
-import javax.naming.NamingException;
-
 import junit.framework.Assert;
 import junit.framework.TestCase;
 
@@ -43,7 +41,7 @@
  */
 public class StoredProcedureTest extends TestCase
 {
-    public void testDecodeStoredProcedureNParams() throws NamingException
+    public void testDecodeStoredProcedureNParams()
     {
         Asn1Decoder storedProcedureDecoder = new StoredProcedureDecoder();
 
@@ -122,7 +120,7 @@
         }
     }
 
-    public void testDecodeStoredProcedureNoParam() throws NamingException
+    public void testDecodeStoredProcedureNoParam()
     {
         Asn1Decoder storedProcedureDecoder = new StoredProcedureDecoder();
 
@@ -177,7 +175,7 @@
         }
     }
 
-    public void testDecodeStoredProcedureOneParam() throws NamingException
+    public void testDecodeStoredProcedureOneParam()
     {
         Asn1Decoder storedProcedureDecoder = new StoredProcedureDecoder();
 

Modified: directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/modify/ModifyRequestTest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/modify/ModifyRequestTest.java?rev=575005&r1=575004&r2=575005&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/modify/ModifyRequestTest.java (original)
+++ directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/modify/ModifyRequestTest.java Wed Sep 12 09:18:00 2007
@@ -590,7 +590,7 @@
     /**
      * Test the decoding of a ModifyRequest with an empty body
      */
-    public void testDecodeModifyRequestEmptyBody() throws NamingException
+    public void testDecodeModifyRequestEmptyBody()
     {
         Asn1Decoder ldapDecoder = new LdapDecoder();
 
@@ -624,7 +624,7 @@
     /**
      * Test the decoding of a ModifyRequest with an empty object
      */
-    public void testDecodeModifyRequestEmptyObject() throws NamingException
+    public void testDecodeModifyRequestEmptyObject()
     {
         Asn1Decoder ldapDecoder = new LdapDecoder();
 
@@ -659,7 +659,7 @@
     /**
      * Test the decoding of a ModifyRequest with an object and nothing else
      */
-    public void testDecodeModifyRequestObjectAlone() throws NamingException
+    public void testDecodeModifyRequestObjectAlone()
     {
         Asn1Decoder ldapDecoder = new LdapDecoder();
 
@@ -696,7 +696,7 @@
     /**
      * Test the decoding of a ModifyRequest with an empty modification
      */
-    public void testDecodeModifyRequestEmptyModification() throws NamingException
+    public void testDecodeModifyRequestEmptyModification()
     {
         Asn1Decoder ldapDecoder = new LdapDecoder();
 
@@ -734,7 +734,7 @@
     /**
      * Test the decoding of a ModifyRequest with an empty operation
      */
-    public void testDecodeModifyRequestEmptyOperation() throws NamingException
+    public void testDecodeModifyRequestEmptyOperation()
     {
         Asn1Decoder ldapDecoder = new LdapDecoder();
 
@@ -773,7 +773,7 @@
     /**
      * Test the decoding of a ModifyRequest with an wrong empty operation
      */
-    public void testDecodeModifyRequestWrongOperationEmpty() throws NamingException
+    public void testDecodeModifyRequestWrongOperationEmpty()
     {
         Asn1Decoder ldapDecoder = new LdapDecoder();
 
@@ -813,7 +813,7 @@
     /**
      * Test the decoding of a ModifyRequest with an wrong operation
      */
-    public void testDecodeModifyRequestWrongOperation() throws NamingException
+    public void testDecodeModifyRequestWrongOperation()
     {
         Asn1Decoder ldapDecoder = new LdapDecoder();
 
@@ -854,7 +854,7 @@
      * Test the decoding of a ModifyRequest with an add operation, and nothing
      * more
      */
-    public void testDecodeModifyRequestAddOperationEnd() throws NamingException
+    public void testDecodeModifyRequestAddOperationEnd()
     {
         Asn1Decoder ldapDecoder = new LdapDecoder();
 
@@ -895,7 +895,7 @@
      * Test the decoding of a ModifyRequest with an add operation, and an empty
      * modification
      */
-    public void testDecodeModifyRequestAddOperationEmptyModification() throws NamingException
+    public void testDecodeModifyRequestAddOperationEmptyModification()
     {
         Asn1Decoder ldapDecoder = new LdapDecoder();
 
@@ -984,7 +984,7 @@
      * Test the decoding of a ModifyRequest with an add operation, and a
      * modification with a type and no vals
      */
-    public void testDecodeModifyRequestAddOperationModificationTypeNoVals() throws NamingException
+    public void testDecodeModifyRequestAddOperationModificationTypeNoVals()
     {
         Asn1Decoder ldapDecoder = new LdapDecoder();
 
@@ -1027,7 +1027,7 @@
      * Test the decoding of a ModifyRequest with an add operation, and a
      * modification with a type and an empty vals
      */
-    public void testDecodeModifyRequestAddOperationModificationTypeEmptyVals() throws NamingException
+    public void testDecodeModifyRequestAddOperationModificationTypeEmptyVals()
     {
         Asn1Decoder ldapDecoder = new LdapDecoder();
 
@@ -1107,7 +1107,7 @@
      * Test the decoding of a ModifyRequest with an add operation, and a
      * modification with a type and an empty vals wuth controls
      */
-    public void testDecodeModifyRequestAddOperationModificationTypeEmptyValsWithControls() throws NamingException
+    public void testDecodeModifyRequestAddOperationModificationTypeEmptyValsWithControls()
     {
         Asn1Decoder ldapDecoder = new LdapDecoder();
 

Modified: directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/search/SearchResultEntryTest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/search/SearchResultEntryTest.java?rev=575005&r1=575004&r2=575005&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/search/SearchResultEntryTest.java (original)
+++ directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/search/SearchResultEntryTest.java Wed Sep 12 09:18:00 2007
@@ -387,7 +387,7 @@
     /**
      * Test the decoding of an empty SearchResultEntry
      */
-    public void testDecodeSearchResultEntryEmpty() throws NamingException
+    public void testDecodeSearchResultEntryEmpty()
     {
         Asn1Decoder ldapDecoder = new LdapDecoder();
 
@@ -424,7 +424,7 @@
     /**
      * Test the decoding of an SearchResultEntry with an empty object name
      */
-    public void testDecodeSearchResultEntryEmptyObjectName() throws NamingException
+    public void testDecodeSearchResultEntryEmptyObjectName()
     {
         Asn1Decoder ldapDecoder = new LdapDecoder();
 
@@ -463,7 +463,7 @@
     /**
      * Test the decoding of an SearchResultEntry with an object name alone
      */
-    public void testDecodeSearchResultEntryObjectNameAlone() throws NamingException
+    public void testDecodeSearchResultEntryObjectNameAlone()
     {
         Asn1Decoder ldapDecoder = new LdapDecoder();
 
@@ -503,7 +503,7 @@
     /**
      * Test the decoding of an SearchResultEntry with an empty attributes
      */
-    public void testDecodeSearchResultEntryEmptyAttributes() throws NamingException
+    public void testDecodeSearchResultEntryEmptyAttributes()
     {
         Asn1Decoder ldapDecoder = new LdapDecoder();
 
@@ -571,7 +571,7 @@
     /**
      * Test the decoding of an SearchResultEntry with an empty attributes list
      */
-    public void testDecodeSearchResultEntryEmptyAttributeList() throws NamingException
+    public void testDecodeSearchResultEntryEmptyAttributeList()
     {
         Asn1Decoder ldapDecoder = new LdapDecoder();
 
@@ -613,7 +613,7 @@
      * Test the decoding of an SearchResultEntry with an empty attributes list
      * with controls
      */
-    public void testDecodeSearchResultEntryEmptyAttributeListWithControls() throws NamingException
+    public void testDecodeSearchResultEntryEmptyAttributeListWithControls()
     {
         Asn1Decoder ldapDecoder = new LdapDecoder();
 
@@ -662,7 +662,7 @@
     /**
      * Test the decoding of a SearchResultEntry with an empty type
      */
-    public void testDecodeSearchResultEntryEmptyType() throws NamingException
+    public void testDecodeSearchResultEntryEmptyType()
     {
         Asn1Decoder ldapDecoder = new LdapDecoder();
 
@@ -707,7 +707,7 @@
     /**
      * Test the decoding of a SearchResultEntry with a type alone
      */
-    public void testDecodeSearchResultEntryTypeAlone() throws NamingException
+    public void testDecodeSearchResultEntryTypeAlone()
     {
         Asn1Decoder ldapDecoder = new LdapDecoder();
 

Modified: directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/search/SearchResultReferenceTest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/search/SearchResultReferenceTest.java?rev=575005&r1=575004&r2=575005&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/search/SearchResultReferenceTest.java (original)
+++ directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/search/SearchResultReferenceTest.java Wed Sep 12 09:18:00 2007
@@ -26,8 +26,6 @@
 import java.util.List;
 import java.util.Set;
 
-import javax.naming.NamingException;
-
 import org.apache.directory.shared.asn1.ber.Asn1Decoder;
 import org.apache.directory.shared.asn1.ber.IAsn1Container;
 import org.apache.directory.shared.asn1.codec.DecoderException;
@@ -54,7 +52,7 @@
     /**
      * Test the decoding of a SearchResultReference
      */
-    public void testDecodeSearchResultReferenceSuccess() throws NamingException
+    public void testDecodeSearchResultReferenceSuccess()
     {
         Asn1Decoder ldapDecoder = new LdapDecoder();
 
@@ -177,7 +175,7 @@
     /**
      * Test the decoding of a SearchResultReference with controls
      */
-    public void testDecodeSearchResultReferenceSuccessWithControls() throws NamingException
+    public void testDecodeSearchResultReferenceSuccessWithControls()
     {
         Asn1Decoder ldapDecoder = new LdapDecoder();
 
@@ -322,7 +320,7 @@
     /**
      * Test the decoding of a SearchResultReference with no reference
      */
-    public void testDecodeSearchResultReferenceNoReference() throws NamingException
+    public void testDecodeSearchResultReferenceNoReference()
     {
         Asn1Decoder ldapDecoder = new LdapDecoder();
 
@@ -361,7 +359,7 @@
     /**
      * Test the decoding of a SearchResultReference with one reference
      */
-    public void testDecodeSearchResultReferenceOneReference() throws NamingException
+    public void testDecodeSearchResultReferenceOneReference()
     {
         Asn1Decoder ldapDecoder = new LdapDecoder();
 

Modified: directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/search/controls/EntryChangeControlTest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/search/controls/EntryChangeControlTest.java?rev=575005&r1=575004&r2=575005&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/search/controls/EntryChangeControlTest.java (original)
+++ directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/search/controls/EntryChangeControlTest.java Wed Sep 12 09:18:00 2007
@@ -22,8 +22,6 @@
 
 import java.nio.ByteBuffer;
 
-import javax.naming.NamingException;
-
 import org.apache.directory.shared.asn1.ber.Asn1Decoder;
 import org.apache.directory.shared.asn1.codec.DecoderException;
 import org.apache.directory.shared.ldap.codec.search.controls.ChangeType;
@@ -47,7 +45,7 @@
     /**
      * Test the decoding of a EntryChangeControl
      */
-    public void testDecodeEntryChangeControlSuccess() throws NamingException
+    public void testDecodeEntryChangeControlSuccess()
     {
         Asn1Decoder decoder = new EntryChangeControlDecoder();
         ByteBuffer bb = ByteBuffer.allocate( 0x0D );
@@ -83,7 +81,7 @@
     /**
      * Test the decoding of a EntryChangeControl with a add and a change number
      */
-    public void testDecodeEntryChangeControlWithADDAndChangeNumber() throws NamingException
+    public void testDecodeEntryChangeControlWithADDAndChangeNumber()
     {
         Asn1Decoder decoder = new EntryChangeControlDecoder();
         ByteBuffer bb = ByteBuffer.allocate( 0x08 );
@@ -120,7 +118,7 @@
      * Test the decoding of a EntryChangeControl with a add so we should not
      * have a PreviousDN
      */
-    public void testDecodeEntryChangeControlWithADDAndPreviousDNBad() throws NamingException
+    public void testDecodeEntryChangeControlWithADDAndPreviousDNBad()
     {
         Asn1Decoder decoder = new EntryChangeControlDecoder();
         ByteBuffer bb = ByteBuffer.allocate( 0x0D );
@@ -157,7 +155,7 @@
     /**
      * Test the decoding of a EntryChangeControl with a add and nothing else
      */
-    public void testDecodeEntryChangeControlWithADD() throws NamingException
+    public void testDecodeEntryChangeControlWithADD()
     {
         Asn1Decoder decoder = new EntryChangeControlDecoder();
         ByteBuffer bb = ByteBuffer.allocate( 0x05 );
@@ -194,7 +192,7 @@
      * Test the decoding of a EntryChangeControl with a worng changeType and
      * nothing else
      */
-    public void testDecodeEntryChangeControlWithWrongChangeType() throws NamingException
+    public void testDecodeEntryChangeControlWithWrongChangeType()
     {
         Asn1Decoder decoder = new EntryChangeControlDecoder();
         ByteBuffer bb = ByteBuffer.allocate( 0x05 );

Modified: directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/search/controls/PSearchControlTest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/search/controls/PSearchControlTest.java?rev=575005&r1=575004&r2=575005&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/search/controls/PSearchControlTest.java (original)
+++ directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/search/controls/PSearchControlTest.java Wed Sep 12 09:18:00 2007
@@ -22,8 +22,6 @@
 
 import java.nio.ByteBuffer;
 
-import javax.naming.NamingException;
-
 import org.apache.directory.shared.asn1.ber.Asn1Decoder;
 import org.apache.directory.shared.asn1.codec.DecoderException;
 import org.apache.directory.shared.ldap.codec.search.controls.PSearchControl;
@@ -71,7 +69,7 @@
     /**
      * Test the decoding of a PSearchControl with combined changes types
      */
-    public void testDecodeModifyDNRequestSuccessChangeTypesAddModDN() throws NamingException
+    public void testDecodeModifyDNRequestSuccessChangeTypesAddModDN()
     {
         Asn1Decoder decoder = new PSearchControlDecoder();
         ByteBuffer bb = ByteBuffer.allocate( 0x0b );
@@ -106,7 +104,7 @@
      * Test the decoding of a PSearchControl with a changes types which
      * value is 0
      */
-    public void testDecodeModifyDNRequestSuccessChangeTypes0() throws NamingException
+    public void testDecodeModifyDNRequestSuccessChangeTypes0()
     {
         Asn1Decoder decoder = new PSearchControlDecoder();
         ByteBuffer bb = ByteBuffer.allocate( 0x0b );
@@ -135,7 +133,7 @@
      * Test the decoding of a PSearchControl with a changes types which
      * value is above 15
      */
-    public void testDecodeModifyDNRequestSuccessChangeTypes22() throws NamingException
+    public void testDecodeModifyDNRequestSuccessChangeTypes22()
     {
         Asn1Decoder decoder = new PSearchControlDecoder();
         ByteBuffer bb = ByteBuffer.allocate( 0x0b );
@@ -163,7 +161,7 @@
     /**
      * Test the decoding of a PSearchControl with a null sequence
      */
-    public void testDecodeModifyDNRequestSuccessNullSequence() throws NamingException
+    public void testDecodeModifyDNRequestSuccessNullSequence()
     {
         Asn1Decoder decoder = new PSearchControlDecoder();
         ByteBuffer bb = ByteBuffer.allocate( 0x02 );
@@ -188,7 +186,7 @@
     /**
      * Test the decoding of a PSearchControl without changeTypes
      */
-    public void testDecodeModifyDNRequestSuccessWithoutChangeTypes() throws NamingException
+    public void testDecodeModifyDNRequestSuccessWithoutChangeTypes()
     {
         Asn1Decoder decoder = new PSearchControlDecoder();
         ByteBuffer bb = ByteBuffer.allocate( 0x08 );
@@ -215,7 +213,7 @@
     /**
      * Test the decoding of a PSearchControl without changeOnly
      */
-    public void testDecodeModifyDNRequestSuccessWithoutChangesOnly() throws NamingException
+    public void testDecodeModifyDNRequestSuccessWithoutChangesOnly()
     {
         Asn1Decoder decoder = new PSearchControlDecoder();
         ByteBuffer bb = ByteBuffer.allocate( 0x08 );
@@ -242,7 +240,7 @@
     /**
      * Test the decoding of a PSearchControl without returnECs
      */
-    public void testDecodeModifyDNRequestSuccessWithoutReturnECs() throws NamingException
+    public void testDecodeModifyDNRequestSuccessWithoutReturnECs()
     {
         Asn1Decoder decoder = new PSearchControlDecoder();
         ByteBuffer bb = ByteBuffer.allocate( 0x08 );

Modified: directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/search/controls/SubEntryControlTest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/search/controls/SubEntryControlTest.java?rev=575005&r1=575004&r2=575005&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/search/controls/SubEntryControlTest.java (original)
+++ directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/search/controls/SubEntryControlTest.java Wed Sep 12 09:18:00 2007
@@ -22,8 +22,6 @@
 
 import java.nio.ByteBuffer;
 
-import javax.naming.NamingException;
-
 import org.apache.directory.shared.asn1.ber.Asn1Decoder;
 import org.apache.directory.shared.asn1.ber.IAsn1Container;
 import org.apache.directory.shared.asn1.codec.DecoderException;
@@ -45,7 +43,7 @@
     /**
      * Test the decoding of a SubEntryControl with a true visibility
      */
-    public void testDecodeSubEntryVisibilityTrue() throws NamingException
+    public void testDecodeSubEntryVisibilityTrue()
     {
         Asn1Decoder decoder = new SubEntryControlDecoder();
         ByteBuffer bb = ByteBuffer.allocate( 0x03 );
@@ -73,7 +71,7 @@
     /**
      * Test the decoding of a SubEntryControl with a false visibility
      */
-    public void testDecodeSubEntryVisibilityFalse() throws NamingException
+    public void testDecodeSubEntryVisibilityFalse()
     {
         Asn1Decoder decoder = new SubEntryControlDecoder();
         ByteBuffer bb = ByteBuffer.allocate( 0x03 );
@@ -101,7 +99,7 @@
     /**
      * Test the decoding of a SubEntryControl with an empty visibility
      */
-    public void testDecodeSubEntryEmptyVisibility() throws NamingException
+    public void testDecodeSubEntryEmptyVisibility()
     {
         Asn1Decoder decoder = new SubEntryControlDecoder();
         ByteBuffer bb = ByteBuffer.allocate( 0x02 );
@@ -131,7 +129,7 @@
     /**
      * Test the decoding of a bad SubEntryControl
      */
-    public void testDecodeSubEntryBad() throws NamingException
+    public void testDecodeSubEntryBad()
     {
         Asn1Decoder decoder = new SubEntryControlDecoder();
         ByteBuffer bb = ByteBuffer.allocate( 0x03 );

Modified: directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/util/LdapUrlTest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/util/LdapUrlTest.java?rev=575005&r1=575004&r2=575005&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/util/LdapUrlTest.java (original)
+++ directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/util/LdapUrlTest.java Wed Sep 12 09:18:00 2007
@@ -48,7 +48,7 @@
     /**
      * Test a null LdapURL
      */
-    public void testLdapUrlNull() throws LdapURLEncodingException
+    public void testLdapUrlNull()
     {
         Assert.assertEquals( "ldap:///", new LdapURL().toString() );
     }
@@ -85,7 +85,7 @@
     /**
      * test a LdapURL with a bad port
      */
-    public void testLdapDNBadPort() throws LdapURLEncodingException
+    public void testLdapDNBadPort()
     {
         try
         {
@@ -104,7 +104,7 @@
     /**
      * test a LdapURL with a bad port 2
      */
-    public void testLdapDNBadPort2() throws LdapURLEncodingException
+    public void testLdapDNBadPort2()
     {
         try
         {
@@ -123,7 +123,7 @@
     /**
      * test a LdapURL with a bad port 3
      */
-    public void testLdapDNBadPort3() throws LdapURLEncodingException
+    public void testLdapDNBadPort3()
     {
         try
         {
@@ -142,7 +142,7 @@
     /**
      * test a LdapURL with a bad port 4
      */
-    public void testLdapDNBadPort4() throws LdapURLEncodingException
+    public void testLdapDNBadPort4()
     {
         try
         {
@@ -170,7 +170,7 @@
     /**
      * test a LdapURL with a bad host 2
      */
-    public void testLdapDNBadHost2() throws LdapURLEncodingException
+    public void testLdapDNBadHost2()
     {
         try
         {
@@ -189,7 +189,7 @@
     /**
      * test a LdapURL with a bad host 3
      */
-    public void testLdapDNBadHost3() throws LdapURLEncodingException
+    public void testLdapDNBadHost3()
     {
         try
         {
@@ -208,7 +208,7 @@
     /**
      * test a LdapURL with a bad host 4
      */
-    public void testLdapDNBadHost4() throws LdapURLEncodingException
+    public void testLdapDNBadHost4()
     {
         try
         {
@@ -227,7 +227,7 @@
     /**
      * test a LdapURL with a bad host 5
      */
-    public void testLdapDNBadHost5() throws LdapURLEncodingException
+    public void testLdapDNBadHost5()
     {
         try
         {
@@ -246,7 +246,7 @@
     /**
      * test a LdapURL with a bad host 6
      */
-    public void testLdapDNBadHost6() throws LdapURLEncodingException
+    public void testLdapDNBadHost6()
     {
         try
         {
@@ -265,7 +265,7 @@
     /**
      * test a LdapURL with a bad host 7
      */
-    public void testLdapDNBadHost7() throws LdapURLEncodingException
+    public void testLdapDNBadHost7()
     {
         try
         {
@@ -302,7 +302,7 @@
     /**
      * test a LdapURL with a bad IP host 1
      */
-    public void testLdapDNBadHostIP1() throws LdapURLEncodingException
+    public void testLdapDNBadHostIP1()
     {
         try
         {
@@ -321,7 +321,7 @@
     /**
      * test a LdapURL with a bad IP host 2
      */
-    public void testLdapDNBadHostIP2() throws LdapURLEncodingException
+    public void testLdapDNBadHostIP2()
     {
         try
         {
@@ -340,7 +340,7 @@
     /**
      * test a LdapURL with a bad IP host 3
      */
-    public void testLdapDNBadHostIP3() throws LdapURLEncodingException
+    public void testLdapDNBadHostIP3()
     {
         try
         {
@@ -359,7 +359,7 @@
     /**
      * test a LdapURL with a bad IP host 4
      */
-    public void testLdapDNBadHostIP4() throws LdapURLEncodingException
+    public void testLdapDNBadHostIP4()
     {
         try
         {
@@ -417,7 +417,7 @@
     /**
      * test a LdapURL with an invalid DN
      */
-    public void testLdapDNInvalidDN() throws LdapURLEncodingException
+    public void testLdapDNInvalidDN()
     {
         try
         {
@@ -434,7 +434,7 @@
     /**
      * test a LdapURL with an invalid DN 2
      */
-    public void testLdapDNInvalidDN2() throws LdapURLEncodingException
+    public void testLdapDNInvalidDN2()
     {
         try
         {
@@ -481,7 +481,7 @@
     /**
      * test a LdapURL with invalid attributes
      */
-    public void testLdapInvalideAttributes() throws LdapURLEncodingException
+    public void testLdapInvalideAttributes()
     {
         try
         {
@@ -498,7 +498,7 @@
     /**
      * test a LdapURL with attributes but no DN
      */
-    public void testLdapNoDNAttributes() throws LdapURLEncodingException
+    public void testLdapNoDNAttributes()
     {
         try
         {

Modified: directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/filter/FilterParserImplTest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/filter/FilterParserImplTest.java?rev=575005&r1=575004&r2=575005&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/filter/FilterParserImplTest.java (original)
+++ directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/filter/FilterParserImplTest.java Wed Sep 12 09:18:00 2007
@@ -61,7 +61,7 @@
      * Tests to avoid deadlocks for invalid filters. 
      * 
      */
-    public void testInvalidFilters() throws IOException, ParseException
+    public void testInvalidFilters() 
     {
         try
         {
@@ -240,7 +240,7 @@
     }
 
 
-    public void testBadEqualsFilter() throws IOException, ParseException
+    public void testBadEqualsFilter() throws IOException
     {
         try
         {
@@ -298,7 +298,7 @@
     }
 
 
-    public void testExtensibleFilterForm1OptionOnRule() throws IOException, ParseException
+    public void testExtensibleFilterForm1OptionOnRule()
     {
         try
         {
@@ -347,7 +347,7 @@
     }
 
 
-    public void testExtensibleFilterForm2OptionOnRule() throws IOException, ParseException
+    public void testExtensibleFilterForm2OptionOnRule()
     {
         try
         {

Modified: directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/ldif/LdifReaderTest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/ldif/LdifReaderTest.java?rev=575005&r1=575004&r2=575005&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/ldif/LdifReaderTest.java (original)
+++ directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/ldif/LdifReaderTest.java Wed Sep 12 09:18:00 2007
@@ -283,7 +283,7 @@
      * 
      * @throws NamingException
      */
-    public void testLdifParserCombinedEntriesChanges() throws NamingException
+    public void testLdifParserCombinedEntriesChanges()
     {
         String ldif = 
             "version:   1\n" + 
@@ -321,7 +321,7 @@
      * 
      * @throws NamingException
      */
-    public void testLdifParserCombinedEntriesChanges2() throws NamingException
+    public void testLdifParserCombinedEntriesChanges2()
     {
         String ldif = 
             "version:   1\n" + 
@@ -358,7 +358,7 @@
      * 
      * @throws NamingException
      */
-    public void testLdifParserCombinedChangesEntries() throws NamingException
+    public void testLdifParserCombinedChangesEntries()
     {
         String ldif = 
             "version:   1\n" + 
@@ -396,7 +396,7 @@
      * 
      * @throws NamingException
      */
-    public void testLdifParserCombinedChangesEntries2() throws NamingException
+    public void testLdifParserCombinedChangesEntries2()
     {
         String ldif = 
             "version:   1\n" + 
@@ -1077,7 +1077,7 @@
         }
     }
 
-    public void testLdifParserRFC2849Sample5WithSizeLimit() throws NamingException, Exception
+    public void testLdifParserRFC2849Sample5WithSizeLimit() throws Exception
     {
         String ldif = 
             "version: 1\n" + 
@@ -1415,7 +1415,7 @@
         assertEquals( "control-value", StringTools.utf8ToString( control.getEncodedValue() ) );
     }
 
-    public void testLdifParserRFC2849Sample7NoOid() throws NamingException, Exception
+    public void testLdifParserRFC2849Sample7NoOid() throws Exception
     {
         String ldif = 
             "version: 1\n" + 
@@ -1440,7 +1440,7 @@
         }
     }
 
-    public void testLdifParserRFC2849Sample7BadOid() throws NamingException, Exception
+    public void testLdifParserRFC2849Sample7BadOid() throws Exception
     {
         String ldif = 
             "version: 1\n" + 
@@ -1465,7 +1465,7 @@
         }
     }
 
-    public void testLdifParserChangeModifyMultiAttrs() throws NamingException, Exception
+    public void testLdifParserChangeModifyMultiAttrs() throws Exception
     {
         String ldif = 
             "version: 1\n" + 

Modified: directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/message/ArrayNamingEnumerationTest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/message/ArrayNamingEnumerationTest.java?rev=575005&r1=575004&r2=575005&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/message/ArrayNamingEnumerationTest.java (original)
+++ directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/message/ArrayNamingEnumerationTest.java Wed Sep 12 09:18:00 2007
@@ -20,12 +20,8 @@
 package org.apache.directory.shared.ldap.message;
 
 
-import java.util.HashMap;
-import java.util.Map;
 import java.util.NoSuchElementException;
 
-import javax.naming.ldap.Control;
-
 import junit.framework.TestCase;
 
 import org.apache.directory.shared.ldap.message.ArrayNamingEnumeration;
@@ -45,7 +41,7 @@
      */
     public void testUsingNullArray()
     {
-        ArrayNamingEnumeration list = new ArrayNamingEnumeration( null );
+        ArrayNamingEnumeration<Object> list = new ArrayNamingEnumeration<Object>( null );
         assertFalse( list.hasMore() );
 
         try
@@ -65,7 +61,7 @@
      */
     public void testUsingEmptyArray()
     {
-        ArrayNamingEnumeration list = new ArrayNamingEnumeration( ArrayUtils.EMPTY_STRING_ARRAY );
+        ArrayNamingEnumeration<String> list = new ArrayNamingEnumeration<String>( ArrayUtils.EMPTY_STRING_ARRAY );
         assertFalse( list.hasMore() );
 
         try
@@ -85,8 +81,7 @@
      */
     public void testUsingSingleElementArray()
     {
-        ArrayNamingEnumeration list;
-        list = new ArrayNamingEnumeration( new String[]
+        ArrayNamingEnumeration<String> list = new ArrayNamingEnumeration<String>( new String[]
             { "foo" } );
         assertTrue( list.hasMore() );
         assertEquals( "foo", list.next() );
@@ -108,8 +103,7 @@
      */
     public void testUsingTwoElementArray()
     {
-        ArrayNamingEnumeration list;
-        list = new ArrayNamingEnumeration( new String[]
+        ArrayNamingEnumeration<String> list = new ArrayNamingEnumeration<String>( new String[]
             { "foo", "bar" } );
         assertTrue( list.hasMore() );
         assertEquals( "foo", list.next() );

Modified: directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/message/ModifyRequestImplTest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/message/ModifyRequestImplTest.java?rev=575005&r1=575004&r2=575005&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/message/ModifyRequestImplTest.java (original)
+++ directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/message/ModifyRequestImplTest.java Wed Sep 12 09:18:00 2007
@@ -97,7 +97,7 @@
     /**
      * Tests the same object referrence for equality.
      */
-    public void testEqualsSameObj() throws InvalidNameException
+    public void testEqualsSameObj()
     {
         ModifyRequestImpl req = getRequest();
         assertTrue( req.equals( req ) );
@@ -107,7 +107,7 @@
     /**
      * Tests for equality using exact copies.
      */
-    public void testEqualsExactCopy() throws InvalidNameException
+    public void testEqualsExactCopy()
     {
         ModifyRequestImpl req0 = getRequest();
         ModifyRequestImpl req1 = getRequest();
@@ -150,7 +150,7 @@
     /**
      * Test for inequality when only the mods ops are different.
      */
-    public void testNotEqualDiffModOps() throws InvalidNameException
+    public void testNotEqualDiffModOps()
     {
         ModifyRequestImpl req0 = getRequest();
         AttributeImpl attr = new AttributeImpl( "attr3" );
@@ -176,7 +176,7 @@
     /**
      * Test for inequality when only the number of mods are different.
      */
-    public void testNotEqualDiffModCount() throws InvalidNameException
+    public void testNotEqualDiffModCount()
     {
         ModifyRequestImpl req0 = getRequest();
         AttributeImpl attr = new AttributeImpl( "attr3" );
@@ -196,7 +196,7 @@
     /**
      * Test for inequality when only the mods attribute Id's are different.
      */
-    public void testNotEqualDiffModIds() throws InvalidNameException
+    public void testNotEqualDiffModIds()
     {
         ModifyRequestImpl req0 = getRequest();
         AttributeImpl attr = new AttributeImpl( "attr3" );
@@ -222,7 +222,7 @@
     /**
      * Test for inequality when only the mods attribute values are different.
      */
-    public void testNotEqualDiffModValues() throws InvalidNameException
+    public void testNotEqualDiffModValues()
     {
         ModifyRequestImpl req0 = getRequest();
         AttributeImpl attr = new AttributeImpl( "attr3" );

Modified: directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/name/LdapDNTest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/name/LdapDNTest.java?rev=575005&r1=575004&r2=575005&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/name/LdapDNTest.java (original)
+++ directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/name/LdapDNTest.java Wed Sep 12 09:18:00 2007
@@ -370,7 +370,7 @@
    /**
     * test a simple DN with a comma at the end
     */
-   public void testLdapDNComaAtEnd() throws InvalidNameException
+   public void testLdapDNComaAtEnd()
    {
        assertFalse( LdapDN.isValid( "a = b,"  ) );
        assertFalse( LdapDN.isValid( "a = b, "  ) );

Modified: directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/parser/ComparatorDescriptionSchemaParserTest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/parser/ComparatorDescriptionSchemaParserTest.java?rev=575005&r1=575004&r2=575005&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/parser/ComparatorDescriptionSchemaParserTest.java (original)
+++ directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/parser/ComparatorDescriptionSchemaParserTest.java Wed Sep 12 09:18:00 2007
@@ -99,7 +99,7 @@
     }
 
 
-    public void testFull() throws ParseException
+    public void testFull()
     {
     }
 
@@ -119,7 +119,7 @@
      * 
      * @throws ParseException
      */
-    public void testRequiredElements() throws ParseException
+    public void testRequiredElements()
     {
     }
 

Modified: directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/parser/NormalizerDescriptionSchemaParserTest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/parser/NormalizerDescriptionSchemaParserTest.java?rev=575005&r1=575004&r2=575005&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/parser/NormalizerDescriptionSchemaParserTest.java (original)
+++ directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/parser/NormalizerDescriptionSchemaParserTest.java Wed Sep 12 09:18:00 2007
@@ -99,7 +99,7 @@
     }
 
 
-    public void testFull() throws ParseException
+    public void testFull()
     {
     }
 
@@ -119,7 +119,7 @@
      * 
      * @throws ParseException
      */
-    public void testRequiredElements() throws ParseException
+    public void testRequiredElements()
     {
     }
 

Modified: directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/parser/SyntaxCheckerDescriptionSchemaParserTest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/parser/SyntaxCheckerDescriptionSchemaParserTest.java?rev=575005&r1=575004&r2=575005&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/parser/SyntaxCheckerDescriptionSchemaParserTest.java (original)
+++ directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/parser/SyntaxCheckerDescriptionSchemaParserTest.java Wed Sep 12 09:18:00 2007
@@ -104,7 +104,7 @@
     }
 
 
-    public void testFull() throws ParseException
+    public void testFull()
     {
         // TODO
     }
@@ -126,7 +126,7 @@
      * 
      * @throws ParseException
      */
-    public void testRequiredElements() throws ParseException
+    public void testRequiredElements()
     {
         // TODO
     }

Modified: directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/util/AttributeSerializerUtilsTest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/util/AttributeSerializerUtilsTest.java?rev=575005&r1=575004&r2=575005&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/util/AttributeSerializerUtilsTest.java (original)
+++ directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/util/AttributeSerializerUtilsTest.java Wed Sep 12 09:18:00 2007
@@ -192,13 +192,12 @@
     public void testFullCycleNonBinaryAttribute() throws IOException
     {
         AttributeImpl attr = new AttributeImpl( "testing" );
-        AttributeSerializerUtils serializer = new AttributeSerializerUtils();
         attr.add( "value0" );
         attr.add( "val1" );
         attr.add( "anything over here!" );
         
-        byte[] serialized = serializer.serialize( attr );
-        Attribute deserialized = ( Attribute ) serializer.deserialize( serialized );
+        byte[] serialized = AttributeSerializerUtils.serialize( attr );
+        Attribute deserialized = ( Attribute ) AttributeSerializerUtils.deserialize( serialized );
         assertEquals( attr, deserialized );
     }
 
@@ -206,7 +205,6 @@
     public void testFullCycleBinaryAttribute() throws IOException, NamingException
     {
         AttributeImpl attr = new AttributeImpl( "testing" );
-        AttributeSerializerUtils serializer = new AttributeSerializerUtils();
         byte[] ba0 = new byte[2];
         ba0[0] = 7;
         ba0[1] = 23;
@@ -217,8 +215,8 @@
         ba1[2] = 67;
         attr.add( ba1 );
         
-        byte[] serialized = serializer.serialize( attr );
-        Attribute deserialized = ( Attribute ) serializer.deserialize( serialized );
+        byte[] serialized = AttributeSerializerUtils.serialize( attr );
+        Attribute deserialized = ( Attribute ) AttributeSerializerUtils.deserialize( serialized );
         ArrayUtils.isEquals( ba0, deserialized.get() );
         ArrayUtils.isEquals( ba1, deserialized.get( 1 ) );
     }
@@ -231,13 +229,12 @@
         for ( int ii = 0; ii < limit; ii++ )
         {
             AttributeImpl attr = new AttributeImpl( "testing" );
-            AttributeSerializerUtils serializer = new AttributeSerializerUtils();
             attr.add( "value0" );
             attr.add( "val1" );
             attr.add( "anything over here!" );
             
-            byte[] serialized = serializer.serialize( attr );
-            serializer.deserialize( serialized );
+            byte[] serialized = AttributeSerializerUtils.serialize( attr );
+            AttributeSerializerUtils.deserialize( serialized );
         }
         
         System.out.println( limit + " attributes with 3 values each were serialized and deserialized in " 



Mime
View raw message