directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r810002 [2/3] - in /directory: apacheds/branches/apacheds-schema/kerberos-shared/src/test/java/org/apache/directory/server/kerberos/shared/ apacheds/branches/apacheds-schema/kerberos-shared/src/test/java/org/apache/directory/server/kerberos...
Date Tue, 01 Sep 2009 12:28:03 GMT
Modified: directory/shared/branches/shared-schema/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/authRequest/AuthRequestTest.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/shared-schema/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/authRequest/AuthRequestTest.java?rev=810002&r1=810001&r2=810002&view=diff
==============================================================================
--- directory/shared/branches/shared-schema/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/authRequest/AuthRequestTest.java (original)
+++ directory/shared/branches/shared-schema/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/authRequest/AuthRequestTest.java Tue Sep  1 12:28:00 2009
@@ -26,7 +26,11 @@
 import org.apache.directory.shared.ldap.codec.ControlCodec;
 import org.apache.directory.shared.ldap.codec.bind.BindRequestCodec;
 import org.apache.directory.shared.ldap.util.StringTools;
-
+import org.junit.Test;
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertTrue;
+import static org.junit.Assert.fail;
+import static org.junit.Assert.assertFalse;
 
 /**
  * Tests for the Auth Request parsing
@@ -39,6 +43,7 @@
     /**
      * Test parsing of a request without the principal attribute
      */
+    @Test
     public void testRequestWithoutPrincipal()
     {
         testParsingFail( AuthRequestTest.class, "request_without_principal_attribute.xml" );
@@ -48,6 +53,7 @@
     /**
      * Test parsing of a request with the principal attribute
      */
+    @Test
     public void testRequestWithPrincipal()
     {
         Dsmlv2Parser parser = null;
@@ -74,6 +80,7 @@
     /**
      * Test parsing of a request with the (optional) requestID attribute
      */
+    @Test
     public void testRequestWithRequestId()
     {
         Dsmlv2Parser parser = null;
@@ -100,6 +107,7 @@
     /**
      * Test parsing of a request with the (optional) requestID attribute equals to 0
      */
+    @Test
     public void testRequestWithRequestIdEquals0()
     {
         testParsingFail( AuthRequestTest.class, "request_with_requestID_equals_0.xml" );
@@ -109,6 +117,7 @@
     /**
      * Test parsing of a request with a (optional) Control element
      */
+    @Test
     public void testRequestWith1Control()
     {
         Dsmlv2Parser parser = null;
@@ -138,6 +147,7 @@
     /**
      * Test parsing of a request with a (optional) Control element with Base64 value
      */
+    @Test
     public void testRequestWith1ControlBase64Value()
     {
         Dsmlv2Parser parser = null;
@@ -168,6 +178,7 @@
     /**
      * Test parsing of a request with a (optional) Control element with empty value
      */
+    @Test
     public void testRequestWith1ControlEmptyValue()
     {
         Dsmlv2Parser parser = null;
@@ -198,6 +209,7 @@
     /**
      * Test parsing of a request with 2 (optional) Control elements
      */
+    @Test
     public void testRequestWith2Controls()
     {
         Dsmlv2Parser parser = null;
@@ -227,6 +239,7 @@
     /**
      * Test parsing of a request with 3 (optional) Control elements without value
      */
+    @Test
     public void testRequestWith3ControlsWithoutValue()
     {
         Dsmlv2Parser parser = null;
@@ -259,6 +272,7 @@
      * 
      * DIRSTUDIO-1
      */
+    @Test
     public void testRequestWithNeededRequestId()
     {
         testParsingFail( AuthRequestTest.class, "request_with_needed_requestID.xml" );

Modified: directory/shared/branches/shared-schema/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/authResponse/AuthResponseTest.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/shared-schema/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/authResponse/AuthResponseTest.java?rev=810002&r1=810001&r2=810002&view=diff
==============================================================================
--- directory/shared/branches/shared-schema/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/authResponse/AuthResponseTest.java (original)
+++ directory/shared/branches/shared-schema/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/authResponse/AuthResponseTest.java Tue Sep  1 12:28:00 2009
@@ -32,6 +32,12 @@
 import org.apache.directory.shared.ldap.codec.bind.BindResponseCodec;
 import org.apache.directory.shared.ldap.message.ResultCodeEnum;
 import org.apache.directory.shared.ldap.util.StringTools;
+import org.junit.Test;
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertTrue;
+import static org.junit.Assert.fail;
+import static org.junit.Assert.assertFalse;
+import static org.junit.Assert.assertNull;
 
 import com.sun.jndi.ldap.LdapURL;
 
@@ -48,6 +54,7 @@
     /**
      * Test parsing of a Response with the (optional) requestID attribute
      */
+    @Test
     public void testResponseWithRequestId()
     {
         Dsmlv2ResponseParser parser = null;
@@ -74,6 +81,7 @@
     /**
      * Test parsing of a Response with the (optional) requestID attribute equals 0
      */
+    @Test
     public void testResponseWithRequestIdEquals0()
     {
         testParsingFail( AuthResponseTest.class, "response_with_requestID_equals_0.xml" );
@@ -83,6 +91,7 @@
     /**
      * Test parsing of a response with a (optional) Control element
      */
+    @Test
     public void testResponseWith1Control()
     {
         Dsmlv2ResponseParser parser = null;
@@ -116,6 +125,7 @@
     /**
      * Test parsing of a response with a (optional) Control element with empty value
      */
+    @Test
     public void testResponseWith1ControlEmptyValue()
     {
         Dsmlv2ResponseParser parser = null;
@@ -146,6 +156,7 @@
     /**
      * Test parsing of a response with 2 (optional) Control elements
      */
+    @Test
     public void testResponseWith2Controls()
     {
         Dsmlv2ResponseParser parser = null;
@@ -180,6 +191,7 @@
     /**
      * Test parsing of a response with 3 (optional) Control elements without value
      */
+    @Test
     public void testResponseWith3ControlsWithoutValue()
     {
         Dsmlv2ResponseParser parser = null;
@@ -214,6 +226,7 @@
     /**
      * Test parsing of a response without Result Code element
      */
+    @Test
     public void testResponseWithoutResultCode()
     {
         testParsingFail( AuthResponseTest.class, "response_without_result_code.xml" );
@@ -223,6 +236,7 @@
     /**
      * Test parsing of a response with Result Code element but a not integer value
      */
+    @Test
     public void testResponseWithResultCodeNotInteger()
     {
         testParsingFail( AuthResponseTest.class, "response_with_result_code_not_integer.xml" );
@@ -232,6 +246,7 @@
     /**
      * Test parsing of a response with Result Code 
      */
+    @Test
     public void testResponseWithResultCode()
     {
         Dsmlv2ResponseParser parser = null;
@@ -260,6 +275,7 @@
     /**
      * Test parsing of a response with Error Message
      */
+    @Test
     public void testResponseWithErrorMessage()
     {
         Dsmlv2ResponseParser parser = null;
@@ -289,6 +305,7 @@
     /**
      * Test parsing of a response with Empty Error Message
      */
+    @Test
     public void testResponseWithEmptyErrorMessage()
     {
         Dsmlv2ResponseParser parser = null;
@@ -317,6 +334,7 @@
     /**
      * Test parsing of a response with a Referral
      */
+    @Test
     public void testResponseWith1Referral()
     {
         Dsmlv2ResponseParser parser = null;
@@ -338,7 +356,7 @@
 
         LdapResultCodec ldapResult = bindResponse.getLdapResult();
 
-        List referrals = ldapResult.getReferrals();
+        List<org.apache.directory.shared.ldap.util.LdapURL> referrals = ldapResult.getReferrals();
 
         assertEquals( 1, referrals.size() );
 
@@ -358,6 +376,7 @@
     /**
      * Test parsing of a response with an empty Referral
      */
+    @Test
     public void testResponseWith1EmptyReferral()
     {
         Dsmlv2ResponseParser parser = null;
@@ -379,7 +398,7 @@
 
         LdapResultCodec ldapResult = bindResponse.getLdapResult();
 
-        List referrals = ldapResult.getReferrals();
+        List<org.apache.directory.shared.ldap.util.LdapURL> referrals = ldapResult.getReferrals();
 
         assertEquals( 0, referrals.size() );
     }
@@ -388,6 +407,7 @@
     /**
      * Test parsing of a response with 2 Referral elements
      */
+    @Test
     public void testResponseWith2Referrals()
     {
         Dsmlv2ResponseParser parser = null;
@@ -409,7 +429,7 @@
 
         LdapResultCodec ldapResult = bindResponse.getLdapResult();
 
-        List referrals = ldapResult.getReferrals();
+        List<org.apache.directory.shared.ldap.util.LdapURL> referrals = ldapResult.getReferrals();
 
         assertEquals( 2, referrals.size() );
 
@@ -440,6 +460,7 @@
     /**
      * Test parsing of a response with a Referral and an Error Message
      */
+    @Test
     public void testResponseWith1ReferralAndAnErrorMessage()
     {
         Dsmlv2ResponseParser parser = null;
@@ -461,7 +482,7 @@
 
         LdapResultCodec ldapResult = bindResponse.getLdapResult();
 
-        List referrals = ldapResult.getReferrals();
+        List<org.apache.directory.shared.ldap.util.LdapURL> referrals = ldapResult.getReferrals();
 
         assertEquals( 1, referrals.size() );
 
@@ -481,6 +502,7 @@
     /**
      * Test parsing of a response with MatchedDN attribute
      */
+    @Test
     public void testResponseWithMatchedDNAttribute()
     {
         Dsmlv2ResponseParser parser = null;
@@ -509,6 +531,7 @@
     /**
      * Test parsing of a response with wrong matched DN
      */
+    @Test
     public void testResponseWithWrongMatchedDN()
     {
         testParsingFail( AuthResponseTest.class, "response_with_wrong_matchedDN_attribute.xml" );
@@ -518,6 +541,7 @@
     /**
      * Test parsing of a response with wrong Descr attribute
      */
+    @Test
     public void testResponseWithWrongDescr()
     {
         testParsingFail( AuthResponseTest.class, "response_with_wrong_matchedDN_attribute.xml" );

Modified: directory/shared/branches/shared-schema/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/batchRequest/BatchRequestTest.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/shared-schema/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/batchRequest/BatchRequestTest.java?rev=810002&r1=810001&r2=810002&view=diff
==============================================================================
--- directory/shared/branches/shared-schema/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/batchRequest/BatchRequestTest.java (original)
+++ directory/shared/branches/shared-schema/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/batchRequest/BatchRequestTest.java Tue Sep  1 12:28:00 2009
@@ -36,7 +36,10 @@
 import org.apache.directory.shared.ldap.codec.modify.ModifyRequestCodec;
 import org.apache.directory.shared.ldap.codec.modifyDn.ModifyDNRequestCodec;
 import org.apache.directory.shared.ldap.codec.search.SearchRequestCodec;
-
+import org.junit.Test;
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertTrue;
+import static org.junit.Assert.fail;
 
 /**
  * Tests for the Compare Response parsing
@@ -49,6 +52,7 @@
     /**
      * Test parsing of a Request with the (optional) requestID attribute
      */
+    @Test
     public void testResponseWithRequestId()
     {
         Dsmlv2Parser parser = null;
@@ -75,6 +79,7 @@
     /**
      * Test parsing of a request with the (optional) requestID attribute equals to 0
      */
+    @Test
     public void testRequestWithRequestIdEquals0()
     {
         testParsingFail( BatchRequestTest.class, "request_with_requestID_equals_0.xml" );
@@ -84,6 +89,7 @@
     /**
      * Test parsing of a Request with the (optional) requestID attribute
      */
+    @Test
     public void testResponseWith0Request()
     {
         Dsmlv2Parser parser = null;
@@ -110,6 +116,7 @@
     /**
      * Test parsing of a Request with 1 AuthRequest
      */
+    @Test
     public void testResponseWith1AuthRequest()
     {
         Dsmlv2Parser parser = null;
@@ -147,6 +154,7 @@
     /**
      * Test parsing of a Request with 1 AddRequest
      */
+    @Test
     public void testResponseWith1AddRequest()
     {
         Dsmlv2Parser parser = null;
@@ -184,6 +192,7 @@
     /**
      * Test parsing of a Request with 1 CompareRequest
      */
+    @Test
     public void testResponseWith1CompareRequest()
     {
         Dsmlv2Parser parser = null;
@@ -221,6 +230,7 @@
     /**
      * Test parsing of a Request with 1 AbandonRequest
      */
+    @Test
     public void testResponseWith1AbandonRequest()
     {
         Dsmlv2Parser parser = null;
@@ -258,6 +268,7 @@
     /**
      * Test parsing of a Request with 1 DelRequest
      */
+    @Test
     public void testResponseWith1DelRequest()
     {
         Dsmlv2Parser parser = null;
@@ -295,6 +306,7 @@
     /**
      * Test parsing of a Request with 1 ExtendedRequest
      */
+    @Test
     public void testResponseWith1ExtendedRequest()
     {
         Dsmlv2Parser parser = null;
@@ -332,6 +344,7 @@
     /**
      * Test parsing of a Request with 1 ModDNRequest
      */
+    @Test
     public void testResponseWith1ModDNRequest()
     {
         Dsmlv2Parser parser = null;
@@ -369,6 +382,7 @@
     /**
      * Test parsing of a Request with 1 ModifyRequest
      */
+    @Test
     public void testResponseWith1ModifyRequest()
     {
         Dsmlv2Parser parser = null;
@@ -406,6 +420,7 @@
     /**
      * Test parsing of a Request with 1 SearchRequest
      */
+    @Test
     public void testResponseWith1SearchRequest()
     {
         Dsmlv2Parser parser = null;
@@ -443,6 +458,7 @@
     /**
      * Test parsing of a Request with 2 AddRequest
      */
+    @Test
     public void testResponseWith2AddRequest()
     {
         Dsmlv2Parser parser = null;
@@ -480,6 +496,7 @@
     /**
      * Test parsing of a Request with 2 CompareRequest
      */
+    @Test
     public void testResponseWith2CompareRequest()
     {
         Dsmlv2Parser parser = null;
@@ -517,6 +534,7 @@
     /**
      * Test parsing of a Request with 2 AbandonRequest
      */
+    @Test
     public void testResponseWith2AbandonRequest()
     {
         Dsmlv2Parser parser = null;
@@ -554,6 +572,7 @@
     /**
      * Test parsing of a Request with 2 DelRequest
      */
+    @Test
     public void testResponseWith2DelRequest()
     {
         Dsmlv2Parser parser = null;
@@ -591,6 +610,7 @@
     /**
      * Test parsing of a Request with 2 ExtendedRequest
      */
+    @Test
     public void testResponseWith2ExtendedRequest()
     {
         Dsmlv2Parser parser = null;
@@ -628,6 +648,7 @@
     /**
      * Test parsing of a Request with 2 ModDNRequest
      */
+    @Test
     public void testResponseWith2ModDNRequest()
     {
         Dsmlv2Parser parser = null;
@@ -665,6 +686,7 @@
     /**
      * Test parsing of a Request with 2 ModifyRequest
      */
+    @Test
     public void testResponseWith2ModifyRequest()
     {
         Dsmlv2Parser parser = null;
@@ -702,6 +724,7 @@
     /**
      * Test parsing of a Request with 2 SearchRequest
      */
+    @Test
     public void testResponseWith2SearchRequest()
     {
         Dsmlv2Parser parser = null;
@@ -739,6 +762,7 @@
     /**
      * Test parsing of a Request with 1 AuthRequest and 1 AddRequest
      */
+    @Test
     public void testResponseWith1AuthRequestAnd1AddRequest()
     {
         Dsmlv2Parser parser = null;
@@ -789,6 +813,7 @@
     /**
      * Test parsing of a request with 1 wrong placed AuthRequest
      */
+    @Test
     public void testRequestWithWrongPlacedAuthRequest()
     {
         testParsingFail( BatchRequestTest.class, "request_with_wrong_placed_AuthRequest.xml" );

Modified: directory/shared/branches/shared-schema/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/batchResponse/BatchResponseTest.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/shared-schema/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/batchResponse/BatchResponseTest.java?rev=810002&r1=810001&r2=810002&view=diff
==============================================================================
--- directory/shared/branches/shared-schema/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/batchResponse/BatchResponseTest.java (original)
+++ directory/shared/branches/shared-schema/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/batchResponse/BatchResponseTest.java Tue Sep  1 12:28:00 2009
@@ -34,7 +34,10 @@
 import org.apache.directory.shared.ldap.codec.extended.ExtendedResponseCodec;
 import org.apache.directory.shared.ldap.codec.modify.ModifyResponseCodec;
 import org.apache.directory.shared.ldap.codec.modifyDn.ModifyDNResponseCodec;
-
+import org.junit.Test;
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertTrue;
+import static org.junit.Assert.fail;
 
 /**
  * Tests for the Compare Response parsing
@@ -47,6 +50,7 @@
     /**
      * Test parsing of a Response with the (optional) requestID attribute
      */
+    @Test
     public void testResponseWithRequestId()
     {
         Dsmlv2ResponseParser parser = null;
@@ -73,6 +77,7 @@
     /**
      * Test parsing of a Response with the (optional) requestID attribute equals 0
      */
+    @Test
     public void testResponseWithRequestIdEquals0()
     {
         testParsingFail( BatchResponseTest.class, "response_with_requestID_equals_0.xml" );
@@ -82,6 +87,7 @@
     /**
      * Test parsing of a Response with 0 Response
      */
+    @Test
     public void testResponseWith0Reponse()
     {
         Dsmlv2ResponseParser parser = null;
@@ -108,6 +114,7 @@
     /**
      * Test parsing of a Response with the 1 AddResponse
      */
+    @Test
     public void testResponseWith1AddResponse()
     {
         Dsmlv2ResponseParser parser = null;
@@ -145,6 +152,7 @@
     /**
      * Test parsing of a Response with the 1 AuthResponse
      */
+    @Test
     public void testResponseWith1AuthResponse()
     {
         Dsmlv2ResponseParser parser = null;
@@ -182,6 +190,7 @@
     /**
      * Test parsing of a Response with the 1 CompareResponse
      */
+    @Test
     public void testResponseWith1CompareResponse()
     {
         Dsmlv2ResponseParser parser = null;
@@ -219,6 +228,7 @@
     /**
      * Test parsing of a Response with the 1 DelResponse
      */
+    @Test
     public void testResponseWith1DelResponse()
     {
         Dsmlv2ResponseParser parser = null;
@@ -256,6 +266,7 @@
     /**
      * Test parsing of a Response with the 1 ErrorResponse
      */
+    @Test
     public void testResponseWith1ErrorResponse()
     {
         Dsmlv2ResponseParser parser = null;
@@ -293,6 +304,7 @@
     /**
      * Test parsing of a Response with the 1 ExtendedResponse
      */
+    @Test
     public void testResponseWith1ExtendedResponse()
     {
         Dsmlv2ResponseParser parser = null;
@@ -330,6 +342,7 @@
     /**
      * Test parsing of a Response with the 1 ModDNResponse
      */
+    @Test
     public void testResponseWith1ModDNResponse()
     {
         Dsmlv2ResponseParser parser = null;
@@ -367,6 +380,7 @@
     /**
      * Test parsing of a Response with the 1 ModifyResponse
      */
+    @Test
     public void testResponseWith1ModifyResponse()
     {
         Dsmlv2ResponseParser parser = null;
@@ -404,6 +418,7 @@
     /**
      * Test parsing of a Response with the 1 SearchResponse
      */
+    @Test
     public void testResponseWith1SearchResponse()
     {
         Dsmlv2ResponseParser parser = null;
@@ -441,6 +456,7 @@
     /**
      * Test parsing of a Response with the 2 AddResponse
      */
+    @Test
     public void testResponseWith2AddResponse()
     {
         Dsmlv2ResponseParser parser = null;
@@ -478,6 +494,7 @@
     /**
      * Test parsing of a Response with the 2 AuthResponse
      */
+    @Test
     public void testResponseWith2AuthResponse()
     {
         Dsmlv2ResponseParser parser = null;
@@ -515,6 +532,7 @@
     /**
      * Test parsing of a Response with the 2 CompareResponse
      */
+    @Test
     public void testResponseWith2CompareResponse()
     {
         Dsmlv2ResponseParser parser = null;
@@ -552,6 +570,7 @@
     /**
      * Test parsing of a Response with the 2 DelResponse
      */
+    @Test
     public void testResponseWith2DelResponse()
     {
         Dsmlv2ResponseParser parser = null;
@@ -589,6 +608,7 @@
     /**
      * Test parsing of a Response with the 2 ErrorResponse
      */
+    @Test
     public void testResponseWith2ErrorResponse()
     {
         Dsmlv2ResponseParser parser = null;
@@ -626,6 +646,7 @@
     /**
      * Test parsing of a Response with the 2 ExtendedResponse
      */
+    @Test
     public void testResponseWith2ExtendedResponse()
     {
         Dsmlv2ResponseParser parser = null;
@@ -663,6 +684,7 @@
     /**
      * Test parsing of a Response with the 2 ModDNResponse
      */
+    @Test
     public void testResponseWith2ModDNResponse()
     {
         Dsmlv2ResponseParser parser = null;
@@ -700,6 +722,7 @@
     /**
      * Test parsing of a Response with the 2 ModifyResponse
      */
+    @Test
     public void testResponseWith2ModifyResponse()
     {
         Dsmlv2ResponseParser parser = null;
@@ -737,6 +760,7 @@
     /**
      * Test parsing of a Response with the 2 SearchResponse
      */
+    @Test
     public void testResponseWith2SearchResponse()
     {
         Dsmlv2ResponseParser parser = null;

Modified: directory/shared/branches/shared-schema/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/compareRequest/CompareRequestTest.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/shared-schema/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/compareRequest/CompareRequestTest.java?rev=810002&r1=810001&r2=810002&view=diff
==============================================================================
--- directory/shared/branches/shared-schema/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/compareRequest/CompareRequestTest.java (original)
+++ directory/shared/branches/shared-schema/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/compareRequest/CompareRequestTest.java Tue Sep  1 12:28:00 2009
@@ -26,7 +26,12 @@
 import org.apache.directory.shared.ldap.codec.ControlCodec;
 import org.apache.directory.shared.ldap.codec.compare.CompareRequestCodec;
 import org.apache.directory.shared.ldap.util.StringTools;
-
+import org.junit.Test;
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertTrue;
+import static org.junit.Assert.fail;
+import static org.junit.Assert.assertFalse;
+import static org.junit.Assert.assertNull;
 
 /**
  * Tests for the Compare Request parsing
@@ -39,6 +44,7 @@
     /**
      * Test parsing of a request without the dn attribute
      */
+    @Test
     public void testRequestWithoutDn()
     {
         testParsingFail( CompareRequestTest.class, "request_without_dn_attribute.xml" );
@@ -48,6 +54,7 @@
     /**
      * Test parsing of a request with the dn attribute
      */
+    @Test
     public void testRequestWithDn()
     {
         Dsmlv2Parser parser = null;
@@ -74,6 +81,7 @@
     /**
      * Test parsing of a request with the (optional) requestID attribute
      */
+    @Test
     public void testRequestWithRequestId()
     {
         Dsmlv2Parser parser = null;
@@ -100,6 +108,7 @@
     /**
      * Test parsing of a request with the (optional) requestID attribute equals to 0
      */
+    @Test
     public void testRequestWithRequestIdEquals0()
     {
         testParsingFail( CompareRequestTest.class, "request_with_requestID_equals_0.xml" );
@@ -109,6 +118,7 @@
     /**
      * Test parsing of a request with a (optional) Control element
      */
+    @Test
     public void testRequestWith1Control()
     {
         Dsmlv2Parser parser = null;
@@ -143,6 +153,7 @@
     /**
      * Test parsing of a request with a (optional) Control element with Base64 value
      */
+    @Test
     public void testRequestWith1ControlBase64Value()
     {
         Dsmlv2Parser parser = null;
@@ -177,6 +188,7 @@
     /**
      * Test parsing of a request with a (optional) Control element with empty value
      */
+    @Test
     public void testRequestWith1ControlEmptyValue()
     {
         Dsmlv2Parser parser = null;
@@ -211,6 +223,7 @@
     /**
      * Test parsing of a request with 2 (optional) Control elements
      */
+    @Test
     public void testRequestWith2Controls()
     {
         Dsmlv2Parser parser = null;
@@ -245,6 +258,7 @@
     /**
      * Test parsing of a request with 3 (optional) Control elements without value
      */
+    @Test
     public void testRequestWith3ControlsWithoutValue()
     {
         Dsmlv2Parser parser = null;
@@ -279,6 +293,7 @@
     /**
      * Test parsing of a request with an Attr elements with value
      */
+    @Test
     public void testRequestWith1CompleteAssertion()
     {
         Dsmlv2Parser parser = null;
@@ -309,6 +324,7 @@
     /**
      * Test parsing of a request with a complete assertion with base64 value
      */
+    @Test
     public void testRequestWith1CompleteAssertionBase64Value()
     {
         Dsmlv2Parser parser = null;
@@ -339,6 +355,7 @@
     /**
      * Test parsing of a request with an Attr elements with empty value
      */
+    @Test
     public void testRequestWith1AssertionEmptyValue()
     {
         Dsmlv2Parser parser = null;
@@ -369,6 +386,7 @@
     /**
      * Test parsing of a request without the Assertion element
      */
+    @Test
     public void testRequestWithoutAssertion()
     {
         testParsingFail( CompareRequestTest.class, "request_without_assertion.xml" );
@@ -378,6 +396,7 @@
     /**
      * Test parsing of a request with 2 complete Assertion element
      */
+    @Test
     public void testRequestWith2CompleteAssertions()
     {
         testParsingFail( CompareRequestTest.class, "request_with_2_complete_assertions.xml" );
@@ -387,6 +406,7 @@
     /**
      * Test parsing of a request with 1 Assertion element without the name attribute
      */
+    @Test
     public void testRequestWith1AssertionWithoutNameAttribute()
     {
         testParsingFail( CompareRequestTest.class, "request_with_1_assertion_without_name_attribute.xml" );
@@ -396,6 +416,7 @@
     /**
      * Test parsing of a request with 1 Assertion element without the Value element
      */
+    @Test
     public void testRequestWith1AssertionWithoutValue()
     {
         testParsingFail( CompareRequestTest.class, "request_with_1_assertion_without_value.xml" );
@@ -405,6 +426,7 @@
     /**
      * Test parsing of a request with 1 Assertion element with 2 Value elements
      */
+    @Test
     public void testRequestWith1AssertionWith2Value()
     {
         testParsingFail( CompareRequestTest.class, "request_with_1_assertion_with_2_values.xml" );
@@ -416,6 +438,7 @@
      * 
      * DIRSTUDIO-1
      */
+    @Test
     public void testRequestWithNeededRequestId()
     {
         testParsingFail( CompareRequestTest.class, "request_with_needed_requestID.xml" );

Modified: directory/shared/branches/shared-schema/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/compareResponse/CompareResponseTest.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/shared-schema/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/compareResponse/CompareResponseTest.java?rev=810002&r1=810001&r2=810002&view=diff
==============================================================================
--- directory/shared/branches/shared-schema/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/compareResponse/CompareResponseTest.java (original)
+++ directory/shared/branches/shared-schema/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/compareResponse/CompareResponseTest.java Tue Sep  1 12:28:00 2009
@@ -32,6 +32,12 @@
 import org.apache.directory.shared.ldap.codec.compare.CompareResponseCodec;
 import org.apache.directory.shared.ldap.message.ResultCodeEnum;
 import org.apache.directory.shared.ldap.util.StringTools;
+import org.junit.Test;
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertTrue;
+import static org.junit.Assert.fail;
+import static org.junit.Assert.assertFalse;
+import static org.junit.Assert.assertNull;
 
 import com.sun.jndi.ldap.LdapURL;
 
@@ -48,6 +54,7 @@
     /**
      * Test parsing of a Response with the (optional) requestID attribute
      */
+    @Test
     public void testResponseWithRequestId()
     {
         Dsmlv2ResponseParser parser = null;
@@ -74,6 +81,7 @@
     /**
      * Test parsing of a Response with the (optional) requestID attribute equals 0
      */
+    @Test
     public void testResponseWithRequestIdEquals0()
     {
         testParsingFail( CompareResponseTest.class, "response_with_requestID_equals_0.xml" );
@@ -83,6 +91,7 @@
     /**
      * Test parsing of a response with a (optional) Control element
      */
+    @Test
     public void testResponseWith1Control()
     {
         Dsmlv2ResponseParser parser = null;
@@ -117,6 +126,7 @@
     /**
      * Test parsing of a response with a (optional) Control element with empty value
      */
+    @Test
     public void testResponseWith1ControlEmptyValue()
     {
         Dsmlv2ResponseParser parser = null;
@@ -147,6 +157,7 @@
     /**
      * Test parsing of a response with 2 (optional) Control elements
      */
+    @Test
     public void testResponseWith2Controls()
     {
         Dsmlv2ResponseParser parser = null;
@@ -181,6 +192,7 @@
     /**
      * Test parsing of a response with 3 (optional) Control elements without value
      */
+    @Test
     public void testResponseWith3ControlsWithoutValue()
     {
         Dsmlv2ResponseParser parser = null;
@@ -215,6 +227,7 @@
     /**
      * Test parsing of a response without Result Code element
      */
+    @Test
     public void testResponseWithoutResultCode()
     {
         testParsingFail( CompareResponseTest.class, "response_without_result_code.xml" );
@@ -224,6 +237,7 @@
     /**
      * Test parsing of a response with Result Code element but a not integer value
      */
+    @Test
     public void testResponseWithResultCodeNotInteger()
     {
         testParsingFail( CompareResponseTest.class, "response_with_result_code_not_integer.xml" );
@@ -233,6 +247,7 @@
     /**
      * Test parsing of a response with Result Code 
      */
+    @Test
     public void testResponseWithResultCode()
     {
         Dsmlv2ResponseParser parser = null;
@@ -261,6 +276,7 @@
     /**
      * Test parsing of a response with Error Message
      */
+    @Test
     public void testResponseWithErrorMessage()
     {
         Dsmlv2ResponseParser parser = null;
@@ -290,6 +306,7 @@
     /**
      * Test parsing of a response with empty Error Message
      */
+    @Test
     public void testResponseWithEmptyErrorMessage()
     {
         Dsmlv2ResponseParser parser = null;
@@ -318,6 +335,7 @@
     /**
      * Test parsing of a response with a Referral
      */
+    @Test
     public void testResponseWith1Referral()
     {
         Dsmlv2ResponseParser parser = null;
@@ -339,7 +357,7 @@
 
         LdapResultCodec ldapResult = compareResponse.getLdapResult();
 
-        List referrals = ldapResult.getReferrals();
+        List<org.apache.directory.shared.ldap.util.LdapURL> referrals = ldapResult.getReferrals();
 
         assertEquals( 1, referrals.size() );
 
@@ -359,6 +377,7 @@
     /**
      * Test parsing of a response with an empty Referral
      */
+    @Test
     public void testResponseWith1EmptyReferral()
     {
         Dsmlv2ResponseParser parser = null;
@@ -380,7 +399,7 @@
 
         LdapResultCodec ldapResult = compareResponse.getLdapResult();
 
-        List referrals = ldapResult.getReferrals();
+        List<org.apache.directory.shared.ldap.util.LdapURL> referrals = ldapResult.getReferrals();
 
         assertEquals( 0, referrals.size() );
     }
@@ -389,6 +408,7 @@
     /**
      * Test parsing of a response with 2 Referral elements
      */
+    @Test
     public void testResponseWith2Referrals()
     {
         Dsmlv2ResponseParser parser = null;
@@ -410,7 +430,7 @@
 
         LdapResultCodec ldapResult = compareResponse.getLdapResult();
 
-        List referrals = ldapResult.getReferrals();
+        List<org.apache.directory.shared.ldap.util.LdapURL> referrals = ldapResult.getReferrals();
 
         assertEquals( 2, referrals.size() );
 
@@ -441,6 +461,7 @@
     /**
      * Test parsing of a response with a Referral and an Error Message
      */
+    @Test
     public void testResponseWith1ReferralAndAnErrorMessage()
     {
         Dsmlv2ResponseParser parser = null;
@@ -462,7 +483,7 @@
 
         LdapResultCodec ldapResult = compareResponse.getLdapResult();
 
-        List referrals = ldapResult.getReferrals();
+        List<org.apache.directory.shared.ldap.util.LdapURL> referrals = ldapResult.getReferrals();
 
         assertEquals( 1, referrals.size() );
 
@@ -482,6 +503,7 @@
     /**
      * Test parsing of a response with MatchedDN attribute
      */
+    @Test
     public void testResponseWithMatchedDNAttribute()
     {
         Dsmlv2ResponseParser parser = null;
@@ -510,6 +532,7 @@
     /**
      * Test parsing of a response with wrong matched DN
      */
+    @Test
     public void testResponseWithWrongMatchedDN()
     {
         testParsingFail( CompareResponseTest.class, "response_with_wrong_matchedDN_attribute.xml" );
@@ -519,6 +542,7 @@
     /**
      * Test parsing of a response with wrong Descr attribute
      */
+    @Test
     public void testResponseWithWrongDescr()
     {
         testParsingFail( CompareResponseTest.class, "response_with_wrong_descr.xml" );

Modified: directory/shared/branches/shared-schema/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/delRequest/DelRequestTest.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/shared-schema/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/delRequest/DelRequestTest.java?rev=810002&r1=810001&r2=810002&view=diff
==============================================================================
--- directory/shared/branches/shared-schema/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/delRequest/DelRequestTest.java (original)
+++ directory/shared/branches/shared-schema/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/delRequest/DelRequestTest.java Tue Sep  1 12:28:00 2009
@@ -26,6 +26,11 @@
 import org.apache.directory.shared.ldap.codec.ControlCodec;
 import org.apache.directory.shared.ldap.codec.del.DelRequestCodec;
 import org.apache.directory.shared.ldap.util.StringTools;
+import org.junit.Test;
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertTrue;
+import static org.junit.Assert.fail;
+import static org.junit.Assert.assertFalse;
 
 
 /**
@@ -39,6 +44,7 @@
     /**
      * Test parsing of a request without the dn attribute
      */
+    @Test
     public void testRequestWithoutDn()
     {
         testParsingFail( DelRequestTest.class, "request_without_dn_attribute.xml" );
@@ -48,6 +54,7 @@
     /**
      * Test parsing of a request with the dn attribute
      */
+    @Test
     public void testRequestWithDn()
     {
         Dsmlv2Parser parser = null;
@@ -73,6 +80,7 @@
     /**
      * Test parsing of a request with the (optional) requestID attribute
      */
+    @Test
     public void testRequestWithRequestId()
     {
         Dsmlv2Parser parser = null;
@@ -99,6 +107,7 @@
     /**
      * Test parsing of a request with the (optional) requestID attribute equals to 0
      */
+    @Test
     public void testRequestWithRequestIdEquals0()
     {
         testParsingFail( DelRequestTest.class, "request_with_requestID_equals_0.xml" );
@@ -108,6 +117,7 @@
     /**
      * Test parsing of a request with a (optional) Control element
      */
+    @Test
     public void testRequestWith1Control()
     {
         Dsmlv2Parser parser = null;
@@ -137,6 +147,7 @@
     /**
      * Test parsing of a request with a (optional) Control element
      */
+    @Test
     public void testRequestWith1ControlBase64Value()
     {
         Dsmlv2Parser parser = null;
@@ -167,6 +178,7 @@
     /**
      * Test parsing of a request with a (optional) Control element with empty value
      */
+    @Test
     public void testRequestWith1ControlEmptyValue()
     {
         Dsmlv2Parser parser = null;
@@ -197,6 +209,7 @@
     /**
      * Test parsing of a request with 2 (optional) Control elements
      */
+    @Test
     public void testRequestWith2Controls()
     {
         Dsmlv2Parser parser = null;
@@ -226,6 +239,7 @@
     /**
      * Test parsing of a request with 3 (optional) Control elements without value
      */
+    @Test
     public void testRequestWith3ControlsWithoutValue()
     {
         Dsmlv2Parser parser = null;
@@ -258,6 +272,7 @@
      * 
      * DIRSTUDIO-1
      */
+    @Test
     public void testRequestWithNeededRequestId()
     {
         testParsingFail( DelRequestTest.class, "request_with_needed_requestID.xml" );

Modified: directory/shared/branches/shared-schema/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/delResponse/DelResponseTest.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/shared-schema/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/delResponse/DelResponseTest.java?rev=810002&r1=810001&r2=810002&view=diff
==============================================================================
--- directory/shared/branches/shared-schema/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/delResponse/DelResponseTest.java (original)
+++ directory/shared/branches/shared-schema/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/delResponse/DelResponseTest.java Tue Sep  1 12:28:00 2009
@@ -32,6 +32,12 @@
 import org.apache.directory.shared.ldap.codec.del.DelResponseCodec;
 import org.apache.directory.shared.ldap.message.ResultCodeEnum;
 import org.apache.directory.shared.ldap.util.StringTools;
+import org.junit.Test;
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertTrue;
+import static org.junit.Assert.fail;
+import static org.junit.Assert.assertFalse;
+import static org.junit.Assert.assertNull;
 
 import com.sun.jndi.ldap.LdapURL;
 
@@ -48,6 +54,7 @@
     /**
      * Test parsing of a Response with the (optional) requestID attribute
      */
+    @Test
     public void testResponseWithRequestId()
     {
         Dsmlv2ResponseParser parser = null;
@@ -74,6 +81,7 @@
     /**
      * Test parsing of a Response with the (optional) requestID attribute equals 0
      */
+    @Test
     public void testResponseWithRequestIdEquals0()
     {
         testParsingFail( DelResponseTest.class, "response_with_requestID_equals_0.xml" );
@@ -83,6 +91,7 @@
     /**
      * Test parsing of a response with a (optional) Control element
      */
+    @Test
     public void testResponseWith1Control()
     {
         Dsmlv2ResponseParser parser = null;
@@ -116,6 +125,7 @@
     /**
      * Test parsing of a response with a (optional) Control element with empty value
      */
+    @Test
     public void testResponseWith1ControlemptyValue()
     {
         Dsmlv2ResponseParser parser = null;
@@ -146,6 +156,7 @@
     /**
      * Test parsing of a response with 2 (optional) Control elements
      */
+    @Test
     public void testResponseWith2Controls()
     {
         Dsmlv2ResponseParser parser = null;
@@ -179,6 +190,7 @@
     /**
      * Test parsing of a response with 3 (optional) Control elements without value
      */
+    @Test
     public void testResponseWith3ControlsWithoutValue()
     {
         Dsmlv2ResponseParser parser = null;
@@ -213,6 +225,7 @@
     /**
      * Test parsing of a response without Result Code element
      */
+    @Test
     public void testResponseWithoutResultCode()
     {
         testParsingFail( DelResponseTest.class, "response_without_result_code.xml" );
@@ -222,6 +235,7 @@
     /**
      * Test parsing of a response with Result Code element but a not integer value
      */
+    @Test
     public void testResponseWithResultCodeNotInteger()
     {
         testParsingFail( DelResponseTest.class, "response_with_result_code_not_integer.xml" );
@@ -231,6 +245,7 @@
     /**
      * Test parsing of a response with Result Code 
      */
+    @Test
     public void testResponseWithResultCode()
     {
         Dsmlv2ResponseParser parser = null;
@@ -259,6 +274,7 @@
     /**
      * Test parsing of a response with Error Message
      */
+    @Test
     public void testResponseWithErrorMessage()
     {
         Dsmlv2ResponseParser parser = null;
@@ -288,6 +304,7 @@
     /**
      * Test parsing of a response with empty Error Message
      */
+    @Test
     public void testResponseWithEmptyErrorMessage()
     {
         Dsmlv2ResponseParser parser = null;
@@ -316,6 +333,7 @@
     /**
      * Test parsing of a response with a Referral
      */
+    @Test
     public void testResponseWith1Referral()
     {
         Dsmlv2ResponseParser parser = null;
@@ -336,7 +354,7 @@
 
         LdapResultCodec ldapResult = delResponse.getLdapResult();
 
-        List referrals = ldapResult.getReferrals();
+        List<org.apache.directory.shared.ldap.util.LdapURL> referrals = ldapResult.getReferrals();
 
         assertEquals( 1, referrals.size() );
 
@@ -356,6 +374,7 @@
     /**
      * Test parsing of a response with an empty Referral
      */
+    @Test
     public void testResponseWith1EmptyReferral()
     {
         Dsmlv2ResponseParser parser = null;
@@ -377,7 +396,7 @@
 
         LdapResultCodec ldapResult = delResponse.getLdapResult();
 
-        List referrals = ldapResult.getReferrals();
+        List<org.apache.directory.shared.ldap.util.LdapURL> referrals = ldapResult.getReferrals();
 
         assertEquals( 0, referrals.size() );
     }
@@ -386,6 +405,7 @@
     /**
      * Test parsing of a response with 2 Referral elements
      */
+    @Test
     public void testResponseWith2Referrals()
     {
         Dsmlv2ResponseParser parser = null;
@@ -407,7 +427,7 @@
 
         LdapResultCodec ldapResult = delResponse.getLdapResult();
 
-        List referrals = ldapResult.getReferrals();
+        List<org.apache.directory.shared.ldap.util.LdapURL> referrals = ldapResult.getReferrals();
 
         assertEquals( 2, referrals.size() );
 
@@ -438,6 +458,7 @@
     /**
      * Test parsing of a response with a Referral and an Error Message
      */
+    @Test
     public void testResponseWith1ReferralAndAnErrorMessage()
     {
         Dsmlv2ResponseParser parser = null;
@@ -459,7 +480,7 @@
 
         LdapResultCodec ldapResult = delResponse.getLdapResult();
 
-        List referrals = ldapResult.getReferrals();
+        List<org.apache.directory.shared.ldap.util.LdapURL> referrals = ldapResult.getReferrals();
 
         assertEquals( 1, referrals.size() );
 
@@ -479,6 +500,7 @@
     /**
      * Test parsing of a response with MatchedDN attribute
      */
+    @Test
     public void testResponseWithMatchedDNAttribute()
     {
         Dsmlv2ResponseParser parser = null;
@@ -507,6 +529,7 @@
     /**
      * Test parsing of a response with wrong matched DN
      */
+    @Test
     public void testResponseWithWrongMatchedDN()
     {
         testParsingFail( DelResponseTest.class, "response_with_wrong_matchedDN_attribute.xml" );
@@ -516,6 +539,7 @@
     /**
      * Test parsing of a response with wrong Descr attribute
      */
+    @Test
     public void testResponseWithWrongDescr()
     {
         testParsingFail( DelResponseTest.class, "response_with_wrong_descr.xml" );

Modified: directory/shared/branches/shared-schema/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/errorResponse/ErrorResponseTest.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/shared-schema/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/errorResponse/ErrorResponseTest.java?rev=810002&r1=810001&r2=810002&view=diff
==============================================================================
--- directory/shared/branches/shared-schema/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/errorResponse/ErrorResponseTest.java (original)
+++ directory/shared/branches/shared-schema/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/errorResponse/ErrorResponseTest.java Tue Sep  1 12:28:00 2009
@@ -25,7 +25,10 @@
 import org.apache.directory.shared.dsmlv2.Dsmlv2ResponseParser;
 import org.apache.directory.shared.dsmlv2.reponse.ErrorResponse;
 import org.apache.directory.shared.dsmlv2.reponse.ErrorResponse.ErrorResponseType;
-
+import org.junit.Test;
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.fail;
+import static org.junit.Assert.assertNull;
 
 /**
  * Tests for the Error Response parsing
@@ -39,6 +42,7 @@
     /**
      * Test parsing of a Response with the (optional) requestID attribute
      */
+    @Test
     public void testResponseWithRequestId()
     {
         Dsmlv2ResponseParser parser = null;
@@ -65,6 +69,7 @@
     /**
      * Test parsing of a Response with the (optional) requestID attribute equals 0
      */
+    @Test
     public void testResponseWithRequestIdEquals0()
     {
         testParsingFail( ErrorResponseTest.class, "response_with_requestID_equals_0.xml" );
@@ -74,6 +79,7 @@
     /**
      * Test parsing of a response without Type attribute
      */
+    @Test
     public void testResponseWithoutType()
     {
         testParsingFail( ErrorResponseTest.class, "response_without_type.xml" );
@@ -83,6 +89,7 @@
     /**
      * Test parsing of a response with type == notAttempted
      */
+    @Test
     public void testResponseWithTypeNotAttempted()
     {
         Dsmlv2ResponseParser parser = null;
@@ -109,6 +116,7 @@
     /**
      * Test parsing of a response with type == couldNotConnect
      */
+    @Test
     public void testResponseWithTypeCouldNotConnect()
     {
         Dsmlv2ResponseParser parser = null;
@@ -135,6 +143,7 @@
     /**
      * Test parsing of a response with type == connectionClosed
      */
+    @Test
     public void testResponseWithTypeConnectionClosed()
     {
         Dsmlv2ResponseParser parser = null;
@@ -161,6 +170,7 @@
     /**
      * Test parsing of a response with type == malformedRequest
      */
+    @Test
     public void testResponseWithTypeMalformedRequest()
     {
         Dsmlv2ResponseParser parser = null;
@@ -187,6 +197,7 @@
     /**
      * Test parsing of a response with type == gatewayInternalError
      */
+    @Test
     public void testResponseWithTypeGatewayInternalError()
     {
         Dsmlv2ResponseParser parser = null;
@@ -213,6 +224,7 @@
     /**
      * Test parsing of a response with type == authenticationFailed
      */
+    @Test
     public void testResponseWithTypeAuthenticationFailed()
     {
         Dsmlv2ResponseParser parser = null;
@@ -239,6 +251,7 @@
     /**
      * Test parsing of a response with type == unresolvableURI
      */
+    @Test
     public void testResponseWithTypeUnresolvableURI()
     {
         Dsmlv2ResponseParser parser = null;
@@ -265,6 +278,7 @@
     /**
      * Test parsing of a response with type == other
      */
+    @Test
     public void testResponseWithTypeOther()
     {
         Dsmlv2ResponseParser parser = null;
@@ -291,6 +305,7 @@
     /**
      * Test parsing of a response with type in error
      */
+    @Test
     public void testResponseWithTypeError()
     {
         testParsingFail( ErrorResponseTest.class, "response_with_type_inError.xml" );
@@ -300,6 +315,7 @@
     /**
      * Test parsing of a response with Message
      */
+    @Test
     public void testResponseWithMessage()
     {
         Dsmlv2ResponseParser parser = null;
@@ -325,6 +341,7 @@
     /**
      * Test parsing of a response with empty Message
      */
+    @Test
     public void testResponseWithEmptyMessage()
     {
         Dsmlv2ResponseParser parser = null;

Modified: directory/shared/branches/shared-schema/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/extendedRequest/ExtendedRequestTest.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/shared-schema/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/extendedRequest/ExtendedRequestTest.java?rev=810002&r1=810001&r2=810002&view=diff
==============================================================================
--- directory/shared/branches/shared-schema/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/extendedRequest/ExtendedRequestTest.java (original)
+++ directory/shared/branches/shared-schema/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/extendedRequest/ExtendedRequestTest.java Tue Sep  1 12:28:00 2009
@@ -26,7 +26,12 @@
 import org.apache.directory.shared.ldap.codec.ControlCodec;
 import org.apache.directory.shared.ldap.codec.extended.ExtendedRequestCodec;
 import org.apache.directory.shared.ldap.util.StringTools;
-
+import org.junit.Test;
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertTrue;
+import static org.junit.Assert.fail;
+import static org.junit.Assert.assertFalse;
+import static org.junit.Assert.assertNull;
 
 /**
  * Tests for the Extended Request parsing
@@ -39,6 +44,7 @@
     /**
      * Test parsing of a request with the (optional) requestID attribute
      */
+    @Test
     public void testRequestWithRequestId()
     {
         Dsmlv2Parser parser = null;
@@ -65,6 +71,7 @@
     /**
      * Test parsing of a request with the (optional) requestID attribute equals to 0
      */
+    @Test
     public void testRequestWithRequestIdEquals0()
     {
         testParsingFail( ExtendedRequestTest.class, "request_with_requestID_equals_0.xml" );
@@ -74,6 +81,7 @@
     /**
      * Test parsing of a request with a (optional) Control element
      */
+    @Test
     public void testRequestWith1Control()
     {
         Dsmlv2Parser parser = null;
@@ -104,6 +112,7 @@
     /**
      * Test parsing of a request with a (optional) Control element with Base64 value
      */
+    @Test
     public void testRequestWith1ControlBase64Value()
     {
         Dsmlv2Parser parser = null;
@@ -134,6 +143,7 @@
     /**
      * Test parsing of a request with a (optional) Control element with empty value
      */
+    @Test
     public void testRequestWith1ControlEmptyValue()
     {
         Dsmlv2Parser parser = null;
@@ -164,6 +174,7 @@
     /**
      * Test parsing of a request with 2 (optional) Control elements
      */
+    @Test
     public void testRequestWith2Controls()
     {
         Dsmlv2Parser parser = null;
@@ -194,6 +205,7 @@
     /**
      * Test parsing of a request with 3 (optional) Control elements without value
      */
+    @Test
     public void testRequestWith3ControlsWithoutValue()
     {
         Dsmlv2Parser parser = null;
@@ -224,6 +236,7 @@
     /**
      * Test parsing of a request with a RequestValue element
      */
+    @Test
     public void testRequestWithRequestValue()
     {
         Dsmlv2Parser parser = null;
@@ -250,6 +263,7 @@
     /**
      * Test parsing of a request with a RequestValue element with Base64 value
      */
+    @Test
     public void testRequestWithBase64RequestValue()
     {
         Dsmlv2Parser parser = null;
@@ -276,6 +290,7 @@
     /**
      * Test parsing of a request with 2 requestValue Elements
      */
+    @Test
     public void testRequestWith2RequestValue()
     {
         testParsingFail( ExtendedRequestTest.class, "request_with_2_requestValue.xml" );
@@ -285,6 +300,7 @@
     /**
      * Test parsing of a request with 2 requestName Elements
      */
+    @Test
     public void testRequestWith2RequestName()
     {
         testParsingFail( ExtendedRequestTest.class, "request_with_2_requestName.xml" );
@@ -294,6 +310,7 @@
     /**
      * Test parsing of a request with an empty requestName
      */
+    @Test
     public void testRequestWithEmptyRequestName()
     {
         testParsingFail( ExtendedRequestTest.class, "request_with_empty_requestName.xml" );
@@ -303,6 +320,7 @@
     /**
      * Test parsing of a request with an empty RequestValue
      */
+    @Test
     public void testRequestWithEmptyRequestValue()
     {
         Dsmlv2Parser parser = null;
@@ -330,6 +348,7 @@
      * 
      * DIRSTUDIO-1
      */
+    @Test
     public void testRequestWithNeededRequestId()
     {
         testParsingFail( ExtendedRequestTest.class, "request_with_needed_requestID.xml" );

Modified: directory/shared/branches/shared-schema/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/extendedResponse/ExtendedResponseTest.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/shared-schema/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/extendedResponse/ExtendedResponseTest.java?rev=810002&r1=810001&r2=810002&view=diff
==============================================================================
--- directory/shared/branches/shared-schema/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/extendedResponse/ExtendedResponseTest.java (original)
+++ directory/shared/branches/shared-schema/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/extendedResponse/ExtendedResponseTest.java Tue Sep  1 12:28:00 2009
@@ -34,6 +34,12 @@
 import org.apache.directory.shared.ldap.codec.extended.ExtendedResponseCodec;
 import org.apache.directory.shared.ldap.message.ResultCodeEnum;
 import org.apache.directory.shared.ldap.util.StringTools;
+import org.junit.Test;
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertTrue;
+import static org.junit.Assert.fail;
+import static org.junit.Assert.assertFalse;
+import static org.junit.Assert.assertNull;
 
 import com.sun.jndi.ldap.LdapURL;
 
@@ -50,6 +56,7 @@
     /**
      * Test parsing of a Response with the (optional) requestID attribute
      */
+    @Test
     public void testResponseWithRequestId()
     {
         Dsmlv2ResponseParser parser = null;
@@ -76,6 +83,7 @@
     /**
      * Test parsing of a Response with the (optional) requestID attribute equals 0
      */
+    @Test
     public void testResponseWithRequestIdEquals0()
     {
         testParsingFail( ExtendedResponseTest.class, "response_with_requestID_equals_0.xml" );
@@ -85,6 +93,7 @@
     /**
      * Test parsing of a response with a (optional) Control element
      */
+    @Test
     public void testResponseWith1Control()
     {
         Dsmlv2ResponseParser parser = null;
@@ -119,6 +128,7 @@
     /**
      * Test parsing of a response with a (optional) Control element with empty value
      */
+    @Test
     public void testResponseWith1ControlEmptyValue()
     {
         Dsmlv2ResponseParser parser = null;
@@ -149,6 +159,7 @@
     /**
      * Test parsing of a response with 2 (optional) Control elements
      */
+    @Test
     public void testResponseWith2Controls()
     {
         Dsmlv2ResponseParser parser = null;
@@ -183,6 +194,7 @@
     /**
      * Test parsing of a response with 3 (optional) Control elements without value
      */
+    @Test
     public void testResponseWith3ControlsWithoutValue()
     {
         Dsmlv2ResponseParser parser = null;
@@ -217,6 +229,7 @@
     /**
      * Test parsing of a response without Result Code element
      */
+    @Test
     public void testResponseWithoutResultCode()
     {
         testParsingFail( ExtendedResponseTest.class, "response_without_result_code.xml" );
@@ -226,6 +239,7 @@
     /**
      * Test parsing of a response with Result Code element but a not integer value
      */
+    @Test
     public void testResponseWithResultCodeNotInteger()
     {
         testParsingFail( ExtendedResponseTest.class, "response_with_result_code_not_integer.xml" );
@@ -235,6 +249,7 @@
     /**
      * Test parsing of a response with Result Code 
      */
+    @Test
     public void testResponseWithResultCode()
     {
         Dsmlv2ResponseParser parser = null;
@@ -263,6 +278,7 @@
     /**
      * Test parsing of a response with Error Message
      */
+    @Test
     public void testResponseWithErrorMessage()
     {
         Dsmlv2ResponseParser parser = null;
@@ -292,6 +308,7 @@
     /**
      * Test parsing of a response with empty Error Message
      */
+    @Test
     public void testResponseWithEmptyErrorMessage()
     {
         Dsmlv2ResponseParser parser = null;
@@ -320,6 +337,7 @@
     /**
      * Test parsing of a response with a Referral
      */
+    @Test
     public void testResponseWith1Referral()
     {
         Dsmlv2ResponseParser parser = null;
@@ -341,7 +359,7 @@
 
         LdapResultCodec ldapResult = extendedResponse.getLdapResult();
 
-        List referrals = ldapResult.getReferrals();
+        List<org.apache.directory.shared.ldap.util.LdapURL> referrals = ldapResult.getReferrals();
 
         assertEquals( 1, referrals.size() );
 
@@ -361,6 +379,7 @@
     /**
      * Test parsing of a response with a empty Referral
      */
+    @Test
     public void testResponseWith1EmptyReferral()
     {
         Dsmlv2ResponseParser parser = null;
@@ -382,7 +401,7 @@
 
         LdapResultCodec ldapResult = extendedResponse.getLdapResult();
 
-        List referrals = ldapResult.getReferrals();
+        List<org.apache.directory.shared.ldap.util.LdapURL> referrals = ldapResult.getReferrals();
 
         assertEquals( 0, referrals.size() );
     }
@@ -391,6 +410,7 @@
     /**
      * Test parsing of a response with 2 Referral elements
      */
+    @Test
     public void testResponseWith2Referrals()
     {
         Dsmlv2ResponseParser parser = null;
@@ -412,7 +432,7 @@
 
         LdapResultCodec ldapResult = extendedResponse.getLdapResult();
 
-        List referrals = ldapResult.getReferrals();
+        List<org.apache.directory.shared.ldap.util.LdapURL> referrals = ldapResult.getReferrals();
 
         assertEquals( 2, referrals.size() );
 
@@ -443,6 +463,7 @@
     /**
      * Test parsing of a response with a Referral and an Error Message
      */
+    @Test
     public void testResponseWith1ReferralAndAnErrorMessage()
     {
         Dsmlv2ResponseParser parser = null;
@@ -464,7 +485,7 @@
 
         LdapResultCodec ldapResult = extendedResponse.getLdapResult();
 
-        List referrals = ldapResult.getReferrals();
+        List<org.apache.directory.shared.ldap.util.LdapURL> referrals = ldapResult.getReferrals();
 
         assertEquals( 1, referrals.size() );
 
@@ -484,6 +505,7 @@
     /**
      * Test parsing of a response with MatchedDN attribute
      */
+    @Test
     public void testResponseWithMatchedDNAttribute()
     {
         Dsmlv2ResponseParser parser = null;
@@ -512,6 +534,7 @@
     /**
      * Test parsing of a response with wrong matched DN
      */
+    @Test
     public void testResponseWithWrongMatchedDN()
     {
         testParsingFail( ExtendedResponseTest.class, "response_with_wrong_matchedDN_attribute.xml" );
@@ -521,6 +544,7 @@
     /**
      * Test parsing of a response with Response Name
      */
+    @Test
     public void testResponseWithResponseName()
     {
         Dsmlv2ResponseParser parser = null;
@@ -554,6 +578,7 @@
     /**
      * Test parsing of a response with empty Response Name
      */
+    @Test
     public void testResponseWithEmptyResponseName()
     {
         Dsmlv2ResponseParser parser = null;
@@ -580,6 +605,7 @@
     /**
      * Test parsing of a response with wrong Response Name
      */
+    @Test
     public void testResponseWithWrongResponseName()
     {
         testParsingFail( ExtendedResponseTest.class, "response_with_wrong_responseName.xml" );
@@ -589,6 +615,7 @@
     /**
      * Test parsing of a response with Response
      */
+    @Test
     public void testResponseWithResponse()
     {
         Dsmlv2ResponseParser parser = null;
@@ -615,6 +642,7 @@
     /**
      * Test parsing of a response with Base64 Response
      */
+    @Test
     public void testResponseWithBase64Response()
     {
         Dsmlv2ResponseParser parser = null;
@@ -641,6 +669,7 @@
     /**
      * Test parsing of a response with empty Response
      */
+    @Test
     public void testResponseWithEmptyResponse()
     {
         Dsmlv2ResponseParser parser = null;
@@ -667,6 +696,7 @@
     /**
      * Test parsing of a response with Response Name and Response
      */
+    @Test
     public void testResponseWithResponseNameAndResponse()
     {
         Dsmlv2ResponseParser parser = null;
@@ -702,6 +732,7 @@
     /**
      * Test parsing of a response with wrong Descr attribute
      */
+    @Test
     public void testResponseWithWrongDescr()
     {
         testParsingFail( ExtendedResponseTest.class, "response_with_wrong_descr.xml" );

Modified: directory/shared/branches/shared-schema/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/modDNRequest/ModifyDNRequestTest.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/shared-schema/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/modDNRequest/ModifyDNRequestTest.java?rev=810002&r1=810001&r2=810002&view=diff
==============================================================================
--- directory/shared/branches/shared-schema/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/modDNRequest/ModifyDNRequestTest.java (original)
+++ directory/shared/branches/shared-schema/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/modDNRequest/ModifyDNRequestTest.java Tue Sep  1 12:28:00 2009
@@ -26,7 +26,11 @@
 import org.apache.directory.shared.ldap.codec.ControlCodec;
 import org.apache.directory.shared.ldap.codec.modifyDn.ModifyDNRequestCodec;
 import org.apache.directory.shared.ldap.util.StringTools;
-
+import org.junit.Test;
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertTrue;
+import static org.junit.Assert.fail;
+import static org.junit.Assert.assertFalse;
 
 /**
  * Tests for the Modify DN Request parsing
@@ -39,6 +43,7 @@
     /**
      * Test parsing of a request with the (optional) requestID attribute
      */
+    @Test
     public void testRequestWithRequestId()
     {
         Dsmlv2Parser parser = null;
@@ -65,6 +70,7 @@
     /**
      * Test parsing of a request with the (optional) requestID attribute equals to 0
      */
+    @Test
     public void testRequestWithRequestIdEquals0()
     {
         testParsingFail( ModifyDNRequestTest.class, "request_with_requestID_equals_0.xml" );
@@ -74,6 +80,7 @@
     /**
      * Test parsing of a request with a (optional) Control element
      */
+    @Test
     public void testRequestWith1Control()
     {
         Dsmlv2Parser parser = null;
@@ -104,6 +111,7 @@
     /**
      * Test parsing of a request with a (optional) Control element with Base64 Value
      */
+    @Test
     public void testRequestWith1ControlBase64Value()
     {
         Dsmlv2Parser parser = null;
@@ -134,6 +142,7 @@
     /**
      * Test parsing of a request with a (optional) Control element with empty value
      */
+    @Test
     public void testRequestWith1ControlEmptyValue()
     {
         Dsmlv2Parser parser = null;
@@ -164,6 +173,7 @@
     /**
      * Test parsing of a request with 2 (optional) Control elements
      */
+    @Test
     public void testRequestWith2Controls()
     {
         Dsmlv2Parser parser = null;
@@ -194,6 +204,7 @@
     /**
      * Test parsing of a request with 3 (optional) Control elements without value
      */
+    @Test
     public void testRequestWith3ControlsWithoutValue()
     {
         Dsmlv2Parser parser = null;
@@ -224,6 +235,7 @@
     /**
      * Test parsing of a request without dn attribute
      */
+    @Test
     public void testRequestWithoutDnAttribute()
     {
         testParsingFail( ModifyDNRequestTest.class, "request_without_dn_attribute.xml" );
@@ -233,6 +245,7 @@
     /**
      * Test parsing of a request without newrdn attribute
      */
+    @Test
     public void testRequestWithoutNewRdnAttribute()
     {
         testParsingFail( ModifyDNRequestTest.class, "request_without_newrdn_attribute.xml" );
@@ -242,6 +255,7 @@
     /**
      * Test parsing of a request without dn and newrdn attributes
      */
+    @Test
     public void testRequestWithDnAndNewRdnAttributes()
     {
         Dsmlv2Parser parser = null;
@@ -270,6 +284,7 @@
     /**
      * Test parsing of a request with deleteoldrdn to true
      */
+    @Test
     public void testRequestWithDeleteOldRdnTrue()
     {
         Dsmlv2Parser parser = null;
@@ -296,6 +311,7 @@
     /**
      * Test parsing of a request with deleteoldrdn to 1
      */
+    @Test
     public void testRequestWithDeleteOldRdn1()
     {
         Dsmlv2Parser parser = null;
@@ -322,6 +338,7 @@
     /**
      * Test parsing of a request with deleteoldrdn to false
      */
+    @Test
     public void testRequestWithDeleteOldRdnFalse()
     {
         Dsmlv2Parser parser = null;
@@ -348,6 +365,7 @@
     /**
      * Test parsing of a request with deleteoldrdn to 0
      */
+    @Test
     public void testRequestWithDeleteOldRdn0()
     {
         Dsmlv2Parser parser = null;
@@ -374,6 +392,7 @@
     /**
      * Test parsing of a request with deleteoldrdn to an error value
      */
+    @Test
     public void testRequestWithDeleteOldRdnError()
     {
         testParsingFail( ModifyDNRequestTest.class, "request_with_deleteoldrdn_error.xml" );
@@ -383,6 +402,7 @@
     /**
      * Test parsing of a request with newSuperior attribute
      */
+    @Test
     public void testRequestWithNewSuperior()
     {
         Dsmlv2Parser parser = null;
@@ -411,6 +431,7 @@
      * 
      * DIRSTUDIO-1
      */
+    @Test
     public void testRequestWithNeededRequestId()
     {
         testParsingFail( ModifyDNRequestTest.class, "request_with_needed_requestID.xml" );

Modified: directory/shared/branches/shared-schema/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/modDNResponse/ModifyDNResponseTest.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/shared-schema/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/modDNResponse/ModifyDNResponseTest.java?rev=810002&r1=810001&r2=810002&view=diff
==============================================================================
--- directory/shared/branches/shared-schema/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/modDNResponse/ModifyDNResponseTest.java (original)
+++ directory/shared/branches/shared-schema/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/modDNResponse/ModifyDNResponseTest.java Tue Sep  1 12:28:00 2009
@@ -32,6 +32,12 @@
 import org.apache.directory.shared.ldap.codec.modifyDn.ModifyDNResponseCodec;
 import org.apache.directory.shared.ldap.message.ResultCodeEnum;
 import org.apache.directory.shared.ldap.util.StringTools;
+import org.junit.Test;
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertTrue;
+import static org.junit.Assert.fail;
+import static org.junit.Assert.assertFalse;
+import static org.junit.Assert.assertNull;
 
 import com.sun.jndi.ldap.LdapURL;
 
@@ -48,6 +54,7 @@
     /**
      * Test parsing of a Response with the (optional) requestID attribute
      */
+    @Test
     public void testResponseWithRequestId()
     {
         Dsmlv2ResponseParser parser = null;
@@ -74,6 +81,7 @@
     /**
      * Test parsing of a Response with the (optional) requestID attribute equals 0
      */
+    @Test
     public void testResponseWithRequestIdEquals0()
     {
         testParsingFail( ModifyDNResponseTest.class, "response_with_requestID_equals_0.xml" );
@@ -83,6 +91,7 @@
     /**
      * Test parsing of a response with a (optional) Control element
      */
+    @Test
     public void testResponseWith1Control()
     {
         Dsmlv2ResponseParser parser = null;
@@ -117,6 +126,7 @@
     /**
      * Test parsing of a response with a (optional) Control element with empty value
      */
+    @Test
     public void testResponseWith1ControlEmptyValue()
     {
         Dsmlv2ResponseParser parser = null;
@@ -147,6 +157,7 @@
     /**
      * Test parsing of a response with 2 (optional) Control elements
      */
+    @Test
     public void testResponseWith2Controls()
     {
         Dsmlv2ResponseParser parser = null;
@@ -181,6 +192,7 @@
     /**
      * Test parsing of a response with 3 (optional) Control elements without value
      */
+    @Test
     public void testResponseWith3ControlsWithoutValue()
     {
         Dsmlv2ResponseParser parser = null;
@@ -215,6 +227,7 @@
     /**
      * Test parsing of a response without Result Code element
      */
+    @Test
     public void testResponseWithoutResultCode()
     {
         testParsingFail( ModifyDNResponseTest.class, "response_without_result_code.xml" );
@@ -224,6 +237,7 @@
     /**
      * Test parsing of a response with Result Code element but a not integer value
      */
+    @Test
     public void testResponseWithResultCodeNotInteger()
     {
         testParsingFail( ModifyDNResponseTest.class, "response_with_result_code_not_integer.xml" );
@@ -233,6 +247,7 @@
     /**
      * Test parsing of a response with Result Code 
      */
+    @Test
     public void testResponseWithResultCode()
     {
         Dsmlv2ResponseParser parser = null;
@@ -261,6 +276,7 @@
     /**
      * Test parsing of a response with Error Message
      */
+    @Test
     public void testResponseWithErrorMessage()
     {
         Dsmlv2ResponseParser parser = null;
@@ -290,6 +306,7 @@
     /**
      * Test parsing of a response with empty Error Message
      */
+    @Test
     public void testResponseWithEmptyErrorMessage()
     {
         Dsmlv2ResponseParser parser = null;
@@ -318,6 +335,7 @@
     /**
      * Test parsing of a response with a Referral
      */
+    @Test
     public void testResponseWith1Referral()
     {
         Dsmlv2ResponseParser parser = null;
@@ -339,7 +357,7 @@
 
         LdapResultCodec ldapResult = modifyDNResponse.getLdapResult();
 
-        List referrals = ldapResult.getReferrals();
+        List<org.apache.directory.shared.ldap.util.LdapURL> referrals = ldapResult.getReferrals();
 
         assertEquals( 1, referrals.size() );
 
@@ -359,6 +377,7 @@
     /**
      * Test parsing of a response with an empty Referral
      */
+    @Test
     public void testResponseWith1EmptyReferral()
     {
         Dsmlv2ResponseParser parser = null;
@@ -380,7 +399,7 @@
 
         LdapResultCodec ldapResult = modifyDNResponse.getLdapResult();
 
-        List referrals = ldapResult.getReferrals();
+        List<org.apache.directory.shared.ldap.util.LdapURL> referrals = ldapResult.getReferrals();
 
         assertEquals( 0, referrals.size() );
     }
@@ -389,6 +408,7 @@
     /**
      * Test parsing of a response with 2 Referral elements
      */
+    @Test
     public void testResponseWith2Referrals()
     {
         Dsmlv2ResponseParser parser = null;
@@ -410,7 +430,7 @@
 
         LdapResultCodec ldapResult = modifyDNResponse.getLdapResult();
 
-        List referrals = ldapResult.getReferrals();
+        List<org.apache.directory.shared.ldap.util.LdapURL> referrals = ldapResult.getReferrals();
 
         assertEquals( 2, referrals.size() );
 
@@ -441,6 +461,7 @@
     /**
      * Test parsing of a response with a Referral and an Error Message
      */
+    @Test
     public void testResponseWith1ReferralAndAnErrorMessage()
     {
         Dsmlv2ResponseParser parser = null;
@@ -462,7 +483,7 @@
 
         LdapResultCodec ldapResult = modifyDNResponse.getLdapResult();
 
-        List referrals = ldapResult.getReferrals();
+        List<org.apache.directory.shared.ldap.util.LdapURL> referrals = ldapResult.getReferrals();
 
         assertEquals( 1, referrals.size() );
 
@@ -482,6 +503,7 @@
     /**
      * Test parsing of a response with MatchedDN attribute
      */
+    @Test
     public void testResponseWithMatchedDNAttribute()
     {
         Dsmlv2ResponseParser parser = null;
@@ -510,6 +532,7 @@
     /**
      * Test parsing of a response with wrong matched DN
      */
+    @Test
     public void testResponseWithWrongMatchedDN()
     {
         testParsingFail( ModifyDNResponseTest.class, "response_with_wrong_matchedDN_attribute.xml" );
@@ -519,6 +542,7 @@
     /**
      * Test parsing of a response with wrong Descr attribute
      */
+    @Test
     public void testResponseWithWrongDescr()
     {
         testParsingFail( ModifyDNResponseTest.class, "response_with_wrong_descr.xml" );

Modified: directory/shared/branches/shared-schema/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/modifyRequest/ModifyRequestTest.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/shared-schema/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/modifyRequest/ModifyRequestTest.java?rev=810002&r1=810001&r2=810002&view=diff
==============================================================================
--- directory/shared/branches/shared-schema/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/modifyRequest/ModifyRequestTest.java (original)
+++ directory/shared/branches/shared-schema/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/modifyRequest/ModifyRequestTest.java Tue Sep  1 12:28:00 2009
@@ -34,7 +34,11 @@
 import org.apache.directory.shared.ldap.entry.EntryAttribute;
 import org.apache.directory.shared.ldap.entry.Modification;
 import org.apache.directory.shared.ldap.util.StringTools;
-
+import org.junit.Test;
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertTrue;
+import static org.junit.Assert.fail;
+import static org.junit.Assert.assertFalse;
 
 /**
  * Tests for the Modify Request parsing
@@ -47,6 +51,7 @@
     /**
      * Test parsing of a request with the (optional) requestID attribute
      */
+    @Test
     public void testRequestWithRequestId()
     {
         Dsmlv2Parser parser = null;
@@ -73,6 +78,7 @@
     /**
      * Test parsing of a request with the (optional) requestID attribute equals to 0
      */
+    @Test
     public void testRequestWithRequestIdEquals0()
     {
         testParsingFail( ModifyRequestTest.class, "request_with_requestID_equals_0.xml" );
@@ -82,6 +88,7 @@
     /**
      * Test parsing of a request with a (optional) Control element
      */
+    @Test
     public void testRequestWith1Control()
     {
         Dsmlv2Parser parser = null;
@@ -111,6 +118,7 @@
     /**
      * Test parsing of a request with a (optional) Control element with Base64 Value
      */
+    @Test
     public void testRequestWith1ControlBase64Value()
     {
         Dsmlv2Parser parser = null;
@@ -141,6 +149,7 @@
     /**
      * Test parsing of a request with a (optional) Control element with empty value
      */
+    @Test
     public void testRequestWith1ControlEmptyValue()
     {
         Dsmlv2Parser parser = null;
@@ -171,6 +180,7 @@
     /**
      * Test parsing of a request with 2 (optional) Control elements
      */
+    @Test
     public void testRequestWith2Controls()
     {
         Dsmlv2Parser parser = null;
@@ -201,6 +211,7 @@
     /**
      * Test parsing of a request with 3 (optional) Control elements without value
      */
+    @Test
     public void testRequestWith3ControlsWithoutValue()
     {
         Dsmlv2Parser parser = null;
@@ -231,6 +242,7 @@
     /**
      * Test parsing of a request without dn attribute
      */
+    @Test
     public void testRequestWithoutDnAttribute()
     {
         testParsingFail( ModifyRequestTest.class, "request_without_dn_attribute.xml" );
@@ -241,6 +253,7 @@
      * Test parsing of a request with a Modification element
      * @throws NamingException 
      */
+    @Test
     public void testRequestWith1Modification() throws NamingException
     {
         Dsmlv2Parser parser = null;
@@ -281,6 +294,7 @@
      * @throws NamingException 
      * @throws UnsupportedEncodingException 
      */
+    @Test
     public void testRequestWith1ModificationBase64Value() throws NamingException, UnsupportedEncodingException
     {
         Dsmlv2Parser parser = null;
@@ -325,6 +339,7 @@
      * Test parsing of a request with 2 Modification elements
      * @throws NamingException 
      */
+    @Test
     public void testRequestWith2Modifications() throws NamingException
     {
         Dsmlv2Parser parser = null;
@@ -363,6 +378,7 @@
     /**
      * Test parsing of a request without name attribute to the Modification element
      */
+    @Test
     public void testRequestWithoutNameAttribute()
     {
         testParsingFail( ModifyRequestTest.class, "request_without_name_attribute.xml" );
@@ -372,6 +388,7 @@
     /**
      * Test parsing of a request without operation attribute to the Modification element
      */
+    @Test
     public void testRequestWithoutOperationAttribute()
     {
         testParsingFail( ModifyRequestTest.class, "request_without_operation_attribute.xml" );
@@ -382,6 +399,7 @@
      * Test parsing of a request with operation attribute to Add value
      * @throws NamingException 
      */
+    @Test
     public void testRequestWithOperationAdd() throws NamingException
     {
         Dsmlv2Parser parser = null;
@@ -409,6 +427,7 @@
      * Test parsing of a request with operation attribute to Delete value
      * @throws NamingException 
      */
+    @Test
     public void testRequestWithOperationDelete() throws NamingException
     {
         Dsmlv2Parser parser = null;
@@ -436,6 +455,7 @@
      * Test parsing of a request with operation attribute to Replace value
      * @throws NamingException 
      */
+    @Test
     public void testRequestWithOperationReplace() throws NamingException
     {
         Dsmlv2Parser parser = null;
@@ -462,6 +482,7 @@
     /**
      * Test parsing of a request without operation attribute to the Modification element
      */
+    @Test
     public void testRequestWithOperationError()
     {
         testParsingFail( ModifyRequestTest.class, "request_with_operation_error.xml" );
@@ -472,6 +493,7 @@
      * Test parsing of a request with a Modification element without Value element
      * @throws NamingException 
      */
+    @Test
     public void testRequestWithModificationWithoutValue() throws NamingException
     {
         Dsmlv2Parser parser = null;
@@ -509,6 +531,7 @@
      * Test parsing of a request with a Modification element
      * @throws NamingException 
      */
+    @Test
     public void testRequestWithModificationWith2Values() throws NamingException
     {
         Dsmlv2Parser parser = null;
@@ -550,6 +573,7 @@
      * Test parsing of a request with a Modification element with an empty value
      * @throws NamingException 
      */
+    @Test
     public void testRequestWithModificationWithEmptyValue() throws NamingException
     {
         Dsmlv2Parser parser = null;
@@ -591,6 +615,7 @@
      * 
      * DIRSTUDIO-1
      */
+    @Test
     public void testRequestWithNeededRequestId()
     {
         testParsingFail( ModifyRequestTest.class, "request_with_needed_requestID.xml" );

Modified: directory/shared/branches/shared-schema/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/modifyResponse/ModifyResponseTest.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/shared-schema/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/modifyResponse/ModifyResponseTest.java?rev=810002&r1=810001&r2=810002&view=diff
==============================================================================
--- directory/shared/branches/shared-schema/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/modifyResponse/ModifyResponseTest.java (original)
+++ directory/shared/branches/shared-schema/dsml-parser/src/test/java/org/apache/directory/shared/dsmlv2/modifyResponse/ModifyResponseTest.java Tue Sep  1 12:28:00 2009
@@ -32,6 +32,12 @@
 import org.apache.directory.shared.ldap.codec.modify.ModifyResponseCodec;
 import org.apache.directory.shared.ldap.message.ResultCodeEnum;
 import org.apache.directory.shared.ldap.util.StringTools;
+import org.junit.Test;
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertTrue;
+import static org.junit.Assert.fail;
+import static org.junit.Assert.assertFalse;
+import static org.junit.Assert.assertNull;
 
 import com.sun.jndi.ldap.LdapURL;
 
@@ -48,6 +54,7 @@
     /**
      * Test parsing of a Response with the (optional) requestID attribute
      */
+    @Test
     public void testResponseWithRequestId()
     {
         Dsmlv2ResponseParser parser = null;
@@ -74,6 +81,7 @@
     /**
      * Test parsing of a Response with the (optional) requestID attribute equals 0
      */
+    @Test
     public void testResponseWithRequestIdEquals0()
     {
         testParsingFail( ModifyResponseTest.class, "response_with_requestID_equals_0.xml" );
@@ -83,6 +91,7 @@
     /**
      * Test parsing of a response with a (optional) Control element
      */
+    @Test
     public void testResponseWith1Control()
     {
         Dsmlv2ResponseParser parser = null;
@@ -117,6 +126,7 @@
     /**
      * Test parsing of a response with a (optional) Control element with empty value
      */
+    @Test
     public void testResponseWith1ControlEmptyValue()
     {
         Dsmlv2ResponseParser parser = null;
@@ -147,6 +157,7 @@
     /**
      * Test parsing of a response with 2 (optional) Control elements
      */
+    @Test
     public void testResponseWith2Controls()
     {
         Dsmlv2ResponseParser parser = null;
@@ -181,6 +192,7 @@
     /**
      * Test parsing of a response with 3 (optional) Control elements without value
      */
+    @Test
     public void testResponseWith3ControlsWithoutValue()
     {
         Dsmlv2ResponseParser parser = null;
@@ -215,6 +227,7 @@
     /**
      * Test parsing of a response without Result Code element
      */
+    @Test
     public void testResponseWithoutResultCode()
     {
         testParsingFail( ModifyResponseTest.class, "response_without_result_code.xml" );
@@ -224,6 +237,7 @@
     /**
      * Test parsing of a response with Result Code element but a not integer value
      */
+    @Test
     public void testResponseWithResultCodeNotInteger()
     {
         testParsingFail( ModifyResponseTest.class, "response_with_result_code_not_integer.xml" );
@@ -233,6 +247,7 @@
     /**
      * Test parsing of a response with Result Code 
      */
+    @Test
     public void testResponseWithResultCode()
     {
         Dsmlv2ResponseParser parser = null;
@@ -261,6 +276,7 @@
     /**
      * Test parsing of a response with Error Message
      */
+    @Test
     public void testResponseWithErrorMessage()
     {
         Dsmlv2ResponseParser parser = null;
@@ -290,6 +306,7 @@
     /**
      * Test parsing of a response with empty Error Message
      */
+    @Test
     public void testResponseWithEmptyErrorMessage()
     {
         Dsmlv2ResponseParser parser = null;
@@ -318,6 +335,7 @@
     /**
      * Test parsing of a response with a Referral
      */
+    @Test
     public void testResponseWith1Referral()
     {
         Dsmlv2ResponseParser parser = null;
@@ -339,7 +357,7 @@
 
         LdapResultCodec ldapResult = modifyResponse.getLdapResult();
 
-        List referrals = ldapResult.getReferrals();
+        List<org.apache.directory.shared.ldap.util.LdapURL> referrals = ldapResult.getReferrals();
 
         assertEquals( 1, referrals.size() );
 
@@ -359,6 +377,7 @@
     /**
      * Test parsing of a response with an empty Referral
      */
+    @Test
     public void testResponseWith1EmptyReferral()
     {
         Dsmlv2ResponseParser parser = null;
@@ -380,7 +399,7 @@
 
         LdapResultCodec ldapResult = modifyResponse.getLdapResult();
 
-        List referrals = ldapResult.getReferrals();
+        List<org.apache.directory.shared.ldap.util.LdapURL> referrals = ldapResult.getReferrals();
 
         assertEquals( 0, referrals.size() );
     }
@@ -389,6 +408,7 @@
     /**
      * Test parsing of a response with 2 Referral elements
      */
+    @Test
     public void testResponseWith2Referrals()
     {
         Dsmlv2ResponseParser parser = null;
@@ -410,7 +430,7 @@
 
         LdapResultCodec ldapResult = modifyResponse.getLdapResult();
 
-        List referrals = ldapResult.getReferrals();
+        List<org.apache.directory.shared.ldap.util.LdapURL> referrals = ldapResult.getReferrals();
 
         assertEquals( 2, referrals.size() );
 
@@ -441,6 +461,7 @@
     /**
      * Test parsing of a response with a Referral and an Error Message
      */
+    @Test
     public void testResponseWith1ReferralAndAnErrorMessage()
     {
         Dsmlv2ResponseParser parser = null;
@@ -462,7 +483,7 @@
 
         LdapResultCodec ldapResult = modifyResponse.getLdapResult();
 
-        List referrals = ldapResult.getReferrals();
+        List<org.apache.directory.shared.ldap.util.LdapURL> referrals = ldapResult.getReferrals();
 
         assertEquals( 1, referrals.size() );
 
@@ -482,6 +503,7 @@
     /**
      * Test parsing of a response with MatchedDN attribute
      */
+    @Test
     public void testResponseWithMatchedDNAttribute()
     {
         Dsmlv2ResponseParser parser = null;
@@ -510,6 +532,7 @@
     /**
      * Test parsing of a response with wrong matched DN
      */
+    @Test
     public void testResponseWithWrongMatchedDN()
     {
         testParsingFail( ModifyResponseTest.class, "response_with_wrong_matchedDN_attribute.xml" );
@@ -519,6 +542,7 @@
     /**
      * Test parsing of a response with wrong Descr attribute
      */
+    @Test
     public void testResponseWithWrongDescr()
     {
         testParsingFail( ModifyResponseTest.class, "response_with_wrong_descr.xml" );



Mime
View raw message