directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r809774 - /directory/apacheds/branches/apacheds-schema/core-jndi/src/test/java/org/apache/directory/server/core/jndi/LdapJndiPropertiesTest.java
Date Mon, 31 Aug 2009 22:50:23 GMT
Author: elecharny
Date: Mon Aug 31 22:50:22 2009
New Revision: 809774

URL: http://svn.apache.org/viewvc?rev=809774&view=rev
Log:
Removed the Junit 3.8 constructs and replaced them with 4.5

Modified:
    directory/apacheds/branches/apacheds-schema/core-jndi/src/test/java/org/apache/directory/server/core/jndi/LdapJndiPropertiesTest.java

Modified: directory/apacheds/branches/apacheds-schema/core-jndi/src/test/java/org/apache/directory/server/core/jndi/LdapJndiPropertiesTest.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-schema/core-jndi/src/test/java/org/apache/directory/server/core/jndi/LdapJndiPropertiesTest.java?rev=809774&r1=809773&r2=809774&view=diff
==============================================================================
--- directory/apacheds/branches/apacheds-schema/core-jndi/src/test/java/org/apache/directory/server/core/jndi/LdapJndiPropertiesTest.java
(original)
+++ directory/apacheds/branches/apacheds-schema/core-jndi/src/test/java/org/apache/directory/server/core/jndi/LdapJndiPropertiesTest.java
Mon Aug 31 22:50:22 2009
@@ -29,9 +29,11 @@
 import org.apache.directory.shared.ldap.constants.AuthenticationLevel;
 import org.apache.directory.shared.ldap.exception.LdapConfigurationException;
 import org.apache.directory.shared.ldap.util.StringTools;
+import org.junit.Test;
 
-import junit.framework.TestCase;
-
+import static org.junit.Assert.fail;
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertTrue;
 
 /**
  * Tests the LdapJndiProperties.
@@ -39,8 +41,9 @@
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  * @version $Rev$
  */
-public class LdapJndiPropertiesTest extends TestCase
+public class LdapJndiPropertiesTest
 {
+    @Test
     public void testEmptyEnv() throws Exception
     {
         try
@@ -54,6 +57,7 @@
     }
 
 
+    @Test
     public void testNullEnv() throws Exception
     {
         try
@@ -67,6 +71,7 @@
     }
 
 
+    @Test
     public void testNoAuthWithCredsEnv() throws Exception
     {
         Hashtable<String,Object> env = new Hashtable<String,Object>();
@@ -79,6 +84,7 @@
     }
 
 
+    @Test
     public void testNoAuthWithNoCredsEnv() throws Exception
     {
         Hashtable<String,Object> env = new Hashtable<String,Object>();
@@ -90,6 +96,7 @@
     }
 
 
+    @Test
     public void testAuthWithNoCredsEnv() throws Exception
     {
         Hashtable<String,Object> env = new Hashtable<String,Object>();
@@ -106,6 +113,7 @@
     }
 
 
+    @Test
     public void testAuthWithNoCredsStrong() throws Exception
     {
         Hashtable<String,Object> env = new Hashtable<String,Object>();
@@ -118,6 +126,7 @@
     }
 
 
+    @Test
     public void testAuthWithCredsStrong() throws Exception
     {
         Hashtable<String,Object> env = new Hashtable<String,Object>();



Mime
View raw message