directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ersi...@apache.org
Subject svn commit: r440072 - /directory/trunks/apacheds/core-unit/src/test/java/org/apache/directory/server/core/sp/LdapClassLoaderTest.java
Date Mon, 04 Sep 2006 13:34:34 GMT
Author: ersiner
Date: Mon Sep  4 06:34:33 2006
New Revision: 440072

URL: http://svn.apache.org/viewvc?view=rev&rev=440072
Log:
Fixed schema naming conflict for JavaClassName.

Modified:
    directory/trunks/apacheds/core-unit/src/test/java/org/apache/directory/server/core/sp/LdapClassLoaderTest.java

Modified: directory/trunks/apacheds/core-unit/src/test/java/org/apache/directory/server/core/sp/LdapClassLoaderTest.java
URL: http://svn.apache.org/viewvc/directory/trunks/apacheds/core-unit/src/test/java/org/apache/directory/server/core/sp/LdapClassLoaderTest.java?view=diff&rev=440072&r1=440071&r2=440072
==============================================================================
--- directory/trunks/apacheds/core-unit/src/test/java/org/apache/directory/server/core/sp/LdapClassLoaderTest.java
(original)
+++ directory/trunks/apacheds/core-unit/src/test/java/org/apache/directory/server/core/sp/LdapClassLoaderTest.java
Mon Sep  4 06:34:33 2006
@@ -68,12 +68,12 @@
         // set up
         Attributes attributes = new BasicAttributes( "objectClass", "top", true );
         attributes.get( "objectClass" ).add( "javaClass" );
-        attributes.put( "javaClassName", "HelloWorld" );
+        attributes.put( "fullyQualifiedJavaClassName", "HelloWorld" );
         attributes.put( "javaClassByteCode", HELLOWORLD_CLASS_BYTES );
-        defaultContext.createSubcontext( "javaClassName=HelloWorld", attributes );
+        defaultContext.createSubcontext( "fullyQualifiedJavaClassName=HelloWorld", attributes
);
 
         // assert set up successfull
-        assertNotNull( defaultContext.lookup( "javaClassName=HelloWorld" ) );
+        assertNotNull( defaultContext.lookup( "fullyQualifiedJavaClassName=HelloWorld" )
);
 
         // load the class
         LdapClassLoader loader = new LdapClassLoader( ( ServerLdapContext ) ( sysRoot.lookup(
"" ) ) );
@@ -110,12 +110,12 @@
         // create a class holder entry and add it to the DIT
         Attributes attributes = new BasicAttributes( "objectClass", "top", true );
         attributes.get( "objectClass" ).add( "javaClass" );
-        attributes.put( "javaClassName", "HelloWorld" );
+        attributes.put( "fullyQualifiedJavaClassName", "HelloWorld" );
         attributes.put( "javaClassByteCode", HELLOWORLD_CLASS_BYTES );
-        defaultContext.createSubcontext( "javaClassName=HelloWorld", attributes );
+        defaultContext.createSubcontext( "fullyQualifiedJavaClassName=HelloWorld", attributes
);
 
         // assert set up successfull
-        assertNotNull( defaultContext.lookup( "javaClassName=HelloWorld" ) );
+        assertNotNull( defaultContext.lookup( "fullyQualifiedJavaClassName=HelloWorld" )
);
 
         // load the class
         LdapClassLoader loader = new LdapClassLoader( ( ServerLdapContext ) ( sysRoot.lookup(
"" ) ) );



Mime
View raw message