directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ersi...@apache.org
Subject svn commit: r414651 - /directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/codec/extended/operations/StoredProcedureTest.java
Date Thu, 15 Jun 2006 18:39:09 GMT
Author: ersiner
Date: Thu Jun 15 11:39:09 2006
New Revision: 414651

URL: http://svn.apache.org/viewvc?rev=414651&view=rev
Log:
Parameters component of SP bean is initialized with an empty ArrayList.
So updated the codec tests.

Modified:
    directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/codec/extended/operations/StoredProcedureTest.java

Modified: directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/codec/extended/operations/StoredProcedureTest.java
URL: http://svn.apache.org/viewvc/directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/codec/extended/operations/StoredProcedureTest.java?rev=414651&r1=414650&r2=414651&view=diff
==============================================================================
--- directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/codec/extended/operations/StoredProcedureTest.java
(original)
+++ directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/codec/extended/operations/StoredProcedureTest.java
Thu Jun 15 11:39:09 2006
@@ -86,7 +86,6 @@
         
         Assert.assertEquals( "execute", StringTools.utf8ToString( storedProcedure.getProcedure()
) );
 
-        Assert.assertNotNull( storedProcedure.getParameters() );
         Assert.assertEquals( 3, storedProcedure.getParameters().size() );
 
         StoredProcedureParameter param = ( StoredProcedureParameter ) storedProcedure.getParameters().get(
0 );
@@ -157,7 +156,7 @@
         
         Assert.assertEquals( "execute", StringTools.utf8ToString( storedProcedure.getProcedure()
) );
 
-        Assert.assertNull( storedProcedure.getParameters() );
+        Assert.assertEquals( 0, storedProcedure.getParameters().size() );
         
         // Check the encoding
         try
@@ -215,7 +214,6 @@
         
         Assert.assertEquals( "execute", StringTools.utf8ToString( storedProcedure.getProcedure()
) );
 
-        Assert.assertNotNull( storedProcedure.getParameters() );
         Assert.assertEquals( 1, storedProcedure.getParameters().size() );
 
         StoredProcedureParameter param = ( StoredProcedureParameter ) storedProcedure.getParameters().get(
0 );



Mime
View raw message