directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r894439 - in /directory/apacheds/branches/apacheds-schema/test-framework/src/test/java/org/apache/directory/server/core/integ: TestClassA.java TestClassB.java TestClassC.java TestSuiteServer.java
Date Tue, 29 Dec 2009 16:53:45 GMT
Author: elecharny
Date: Tue Dec 29 16:53:40 2009
New Revision: 894439

URL: http://svn.apache.org/viewvc?rev=894439&view=rev
Log:
o Renamed the AbstractTestUnit class

Modified:
    directory/apacheds/branches/apacheds-schema/test-framework/src/test/java/org/apache/directory/server/core/integ/TestClassA.java
    directory/apacheds/branches/apacheds-schema/test-framework/src/test/java/org/apache/directory/server/core/integ/TestClassB.java
    directory/apacheds/branches/apacheds-schema/test-framework/src/test/java/org/apache/directory/server/core/integ/TestClassC.java
    directory/apacheds/branches/apacheds-schema/test-framework/src/test/java/org/apache/directory/server/core/integ/TestSuiteServer.java

Modified: directory/apacheds/branches/apacheds-schema/test-framework/src/test/java/org/apache/directory/server/core/integ/TestClassA.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-schema/test-framework/src/test/java/org/apache/directory/server/core/integ/TestClassA.java?rev=894439&r1=894438&r2=894439&view=diff
==============================================================================
--- directory/apacheds/branches/apacheds-schema/test-framework/src/test/java/org/apache/directory/server/core/integ/TestClassA.java
(original)
+++ directory/apacheds/branches/apacheds-schema/test-framework/src/test/java/org/apache/directory/server/core/integ/TestClassA.java
Tue Dec 29 16:53:40 2009
@@ -38,7 +38,7 @@
         "cn: testClassA\n" + 
         "sn: sn_testClassA\n"
     })
-public class TestClassA extends AbstractTestUnit
+public class TestClassA extends AbstractLdapTestUnit
 {
     @Test
     @CreateDS( name="testDS" )

Modified: directory/apacheds/branches/apacheds-schema/test-framework/src/test/java/org/apache/directory/server/core/integ/TestClassB.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-schema/test-framework/src/test/java/org/apache/directory/server/core/integ/TestClassB.java?rev=894439&r1=894438&r2=894439&view=diff
==============================================================================
--- directory/apacheds/branches/apacheds-schema/test-framework/src/test/java/org/apache/directory/server/core/integ/TestClassB.java
(original)
+++ directory/apacheds/branches/apacheds-schema/test-framework/src/test/java/org/apache/directory/server/core/integ/TestClassB.java
Tue Dec 29 16:53:40 2009
@@ -35,7 +35,7 @@
         "cn: testClassB\n" + 
         "sn: sn_testClassB\n"
     })
-public class TestClassB extends AbstractTestUnit
+public class TestClassB extends AbstractLdapTestUnit
 {
 
     @Test

Modified: directory/apacheds/branches/apacheds-schema/test-framework/src/test/java/org/apache/directory/server/core/integ/TestClassC.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-schema/test-framework/src/test/java/org/apache/directory/server/core/integ/TestClassC.java?rev=894439&r1=894438&r2=894439&view=diff
==============================================================================
--- directory/apacheds/branches/apacheds-schema/test-framework/src/test/java/org/apache/directory/server/core/integ/TestClassC.java
(original)
+++ directory/apacheds/branches/apacheds-schema/test-framework/src/test/java/org/apache/directory/server/core/integ/TestClassC.java
Tue Dec 29 16:53:40 2009
@@ -28,7 +28,7 @@
 import org.junit.runner.RunWith;
 
 @RunWith( FrameworkRunner.class )
-public class TestClassC extends AbstractTestUnit
+public class TestClassC extends AbstractLdapTestUnit
 {
     @Test
     public void testWithoutMethodOrClassLevelFactory() throws Exception

Modified: directory/apacheds/branches/apacheds-schema/test-framework/src/test/java/org/apache/directory/server/core/integ/TestSuiteServer.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-schema/test-framework/src/test/java/org/apache/directory/server/core/integ/TestSuiteServer.java?rev=894439&r1=894438&r2=894439&view=diff
==============================================================================
--- directory/apacheds/branches/apacheds-schema/test-framework/src/test/java/org/apache/directory/server/core/integ/TestSuiteServer.java
(original)
+++ directory/apacheds/branches/apacheds-schema/test-framework/src/test/java/org/apache/directory/server/core/integ/TestSuiteServer.java
Tue Dec 29 16:53:40 2009
@@ -21,15 +21,36 @@
 import org.apache.directory.server.annotations.CreateLdapServer;
 import org.apache.directory.server.annotations.CreateTransport;
 import org.apache.directory.server.core.annotations.ApplyLdifs;
+import org.apache.directory.server.core.annotations.ContextEntry;
 import org.apache.directory.server.core.annotations.CreateDS;
+import org.apache.directory.server.core.annotations.CreateIndex;
+import org.apache.directory.server.core.annotations.CreatePartition;
 import org.junit.runner.RunWith;
 import org.junit.runners.Suite;
 
 @RunWith( FrameworkSuite.class )
 @Suite.SuiteClasses( { TestClassA.class, TestClassB.class, TestClassC.class } )
 @CreateDS( name = "SuiteDS" )
-@CreateLdapServer( 
-    name = "test",
+@CreatePartition
+    (
+        name = "example",
+        suffix = "dc=example,dc=com",
+        contextEntry = @ContextEntry
+            ( 
+                entryLdif =
+                    "dn: dc=example,dc=com\n" +
+                    "dc: example\n" +
+                    "objectClass: top\n" +
+                    "objectClass: domain\n\n"
+            ),
+        indexes = 
+            {
+                @CreateIndex( attribute = "objectClass" ),
+                @CreateIndex( attribute = "dc" ),
+                @CreateIndex( attribute = "ou" ),
+            }
+    )
+@CreateLdapServer ( 
     transports = 
         {
             @CreateTransport( protocol = "LDAP" ), 



Mime
View raw message