You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by el...@apache.org on 2009/03/15 03:08:29 UTC

svn commit: r754588 - /directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/trigger/TriggerSpecificationParserTest.java

Author: elecharny
Date: Sun Mar 15 02:08:29 2009
New Revision: 754588

URL: http://svn.apache.org/viewvc?rev=754588&view=rev
Log:
Switched to JUNIT 4.4

Modified:
    directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/trigger/TriggerSpecificationParserTest.java

Modified: directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/trigger/TriggerSpecificationParserTest.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/trigger/TriggerSpecificationParserTest.java?rev=754588&r1=754587&r2=754588&view=diff
==============================================================================
--- directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/trigger/TriggerSpecificationParserTest.java (original)
+++ directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/trigger/TriggerSpecificationParserTest.java Sun Mar 15 02:08:29 2009
@@ -25,8 +25,11 @@
 
 import org.apache.directory.shared.ldap.name.LdapDN;
 import org.apache.directory.shared.ldap.trigger.TriggerSpecification.SPSpec;
+import org.junit.Test;
+import static org.junit.Assert.assertNotNull;
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertTrue;
 
-import junit.framework.TestCase;
 
 
 /**
@@ -35,7 +38,7 @@
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  * @version $Rev:$, $Date:$
  */
-public class TriggerSpecificationParserTest extends TestCase
+public class TriggerSpecificationParserTest
 {
 
     /** The Trigger Specification parser */
@@ -57,10 +60,10 @@
      */
     public TriggerSpecificationParserTest( String s )
     {
-        super( s );
         parser = new TriggerSpecificationParser();
     }
 
+    @Test
     public void testWithOperationParameters() throws Exception
     {        
         TriggerSpecification triggerSpecification = null;
@@ -85,6 +88,7 @@
             StoredProcedureParameter.Delete_DELETED_ENTRY.instance() ) );
     }
     
+    @Test
     public void testWithGenericParameters() throws Exception
     {        
         TriggerSpecification triggerSpecification = null;
@@ -111,6 +115,7 @@
             StoredProcedureParameter.Generic_OPERATION_PRINCIPAL.instance() ) );
     }
     
+    @Test
     public void testWithLanguageSchemeOption() throws Exception
     {        
         TriggerSpecification triggerSpecification = null;
@@ -133,6 +138,7 @@
         assertEquals( theSpec.getParameters().size(),  0 );
     }
     
+    @Test
     public void testWithSearchContextOption() throws Exception
     {        
         TriggerSpecification triggerSpecification = null;
@@ -162,6 +168,7 @@
             StoredProcedureParameter.ModifyDN_NEW_RDN.instance() ) );
     }
     
+    @Test
     public void testWithLdapContextParameter() throws Exception
     {        
         TriggerSpecification triggerSpecification = null;
@@ -188,6 +195,7 @@
             StoredProcedureParameter.Generic_LDAP_CONTEXT.instance( new LdapDN( "ou=Backup,ou=System" ) ) ) );
     }
     
+    @Test
     public void testMultipleSPCalls() throws Exception
     {        
         TriggerSpecification triggerSpecification = null;