directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ersi...@apache.org
Subject svn commit: r440057 - in /directory/trunks/apacheds/core-unit/src/test/java/org/apache/directory/server/core: sp/LdapClassLoaderTest.java trigger/DefaulTriggerServiceTest.java
Date Mon, 04 Sep 2006 12:54:00 GMT
Author: ersiner
Date: Mon Sep  4 05:53:59 2006
New Revision: 440057

URL: http://svn.apache.org/viewvc?view=rev&rev=440057
Log:
Renamed schema elements that represents Java classes.

Modified:
    directory/trunks/apacheds/core-unit/src/test/java/org/apache/directory/server/core/sp/LdapClassLoaderTest.java
    directory/trunks/apacheds/core-unit/src/test/java/org/apache/directory/server/core/trigger/DefaulTriggerServiceTest.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=440057&r1=440056&r2=440057
==============================================================================
--- 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 05:53:59 2006
@@ -68,12 +68,12 @@
         // set up
         Attributes attributes = new BasicAttributes( "objectClass", "top", true );
         attributes.get( "objectClass" ).add( "javaClass" );
-        attributes.put( "fullyQualifiedClassName", "HelloWorld" );
-        attributes.put( "byteCode", HELLOWORLD_CLASS_BYTES );
-        defaultContext.createSubcontext( "fullyQualifiedClassName=HelloWorld", attributes
);
+        attributes.put( "javaClassName", "HelloWorld" );
+        attributes.put( "javaClassByteCode", HELLOWORLD_CLASS_BYTES );
+        defaultContext.createSubcontext( "javaClassName=HelloWorld", attributes );
 
         // assert set up successfull
-        assertNotNull( defaultContext.lookup( "fullyQualifiedClassName=HelloWorld" ) );
+        assertNotNull( defaultContext.lookup( "javaClassName=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( "fullyQualifiedClassName", "HelloWorld" );
-        attributes.put( "byteCode", HELLOWORLD_CLASS_BYTES );
-        defaultContext.createSubcontext( "fullyQualifiedClassName=HelloWorld", attributes
);
+        attributes.put( "javaClassName", "HelloWorld" );
+        attributes.put( "javaClassByteCode", HELLOWORLD_CLASS_BYTES );
+        defaultContext.createSubcontext( "javaClassName=HelloWorld", attributes );
 
         // assert set up successfull
-        assertNotNull( defaultContext.lookup( "fullyQualifiedClassName=HelloWorld" ) );
+        assertNotNull( defaultContext.lookup( "javaClassName=HelloWorld" ) );
 
         // load the class
         LdapClassLoader loader = new LdapClassLoader( ( ServerLdapContext ) ( sysRoot.lookup(
"" ) ) );

Modified: directory/trunks/apacheds/core-unit/src/test/java/org/apache/directory/server/core/trigger/DefaulTriggerServiceTest.java
URL: http://svn.apache.org/viewvc/directory/trunks/apacheds/core-unit/src/test/java/org/apache/directory/server/core/trigger/DefaulTriggerServiceTest.java?view=diff&rev=440057&r1=440056&r2=440057
==============================================================================
--- directory/trunks/apacheds/core-unit/src/test/java/org/apache/directory/server/core/trigger/DefaulTriggerServiceTest.java
(original)
+++ directory/trunks/apacheds/core-unit/src/test/java/org/apache/directory/server/core/trigger/DefaulTriggerServiceTest.java
Mon Sep  4 05:53:59 2006
@@ -42,7 +42,7 @@
     public void testAfterDeleteBackupDeletedEntry() throws NamingException
     {
         // Load the stored procedure unit which has the stored procedure to be triggered.
-        JavaStoredProcedureUtils.loadStoredProcedureClass( sysRoot, BackupUtilities.class.getName(),
getClass() );
+        JavaStoredProcedureUtils.loadStoredProcedureClass( sysRoot, BackupUtilities.class
);
         
         // Create a container for backing up deleted entries.
         Attributes backupContext = new BasicAttributes( "ou", "backupContext", true );
@@ -78,7 +78,7 @@
     public void testBeforeDeleteLogWarning() throws NamingException
     {
         // Load the stored procedure unit which has the stored procedure to be triggered.
-        JavaStoredProcedureUtils.loadStoredProcedureClass( sysRoot, LoggingUtilities.class.getName(),
getClass() );
+        JavaStoredProcedureUtils.loadStoredProcedureClass( sysRoot, LoggingUtilities.class
);
         
         // Create the Triger Specification within a Trigger Subentry.
         createTriggerSubentry( "triggerSubentry1",



Mime
View raw message