directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r753300 - in /directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/filter: BranchNormalizedVisitorTest.java FilterNodeEqualityTest.java
Date Fri, 13 Mar 2009 15:21:43 GMT
Author: elecharny
Date: Fri Mar 13 15:21:42 2009
New Revision: 753300

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

Modified:
    directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/filter/BranchNormalizedVisitorTest.java
    directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/filter/FilterNodeEqualityTest.java

Modified: directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/filter/BranchNormalizedVisitorTest.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/filter/BranchNormalizedVisitorTest.java?rev=753300&r1=753299&r2=753300&view=diff
==============================================================================
--- directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/filter/BranchNormalizedVisitorTest.java
(original)
+++ directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/filter/BranchNormalizedVisitorTest.java
Fri Mar 13 15:21:42 2009
@@ -22,8 +22,10 @@
 
 import org.apache.directory.shared.ldap.filter.BranchNormalizedVisitor;
 import org.apache.directory.shared.ldap.filter.ExprNode;
-
-import junit.framework.TestCase;
+import org.junit.Test;
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertFalse;
+import static org.junit.Assert.assertTrue;
 
 
 /**
@@ -32,8 +34,9 @@
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  * @version $Rev$
  */
-public class BranchNormalizedVisitorTest extends TestCase
+public class BranchNormalizedVisitorTest
 {
+    @Test
     public void testBranchNormalizedVisitor0() throws Exception
     {
         String filter = "(ou=Human Resources)";
@@ -50,6 +53,7 @@
     }
 
 
+    @Test
     public void testBranchNormalizedVisitor1() throws Exception
     {
         String filter = "(&(ou=Human Resources)(uid=akarasulu))";
@@ -66,6 +70,7 @@
     }
 
 
+    @Test
     public void testBranchNormalizedVisitor2() throws Exception
     {
         String filter = "(&(uid=akarasulu)(ou=Human Resources)";
@@ -84,6 +89,7 @@
     }
 
 
+    @Test
     public void testBranchNormalizedVisitor3() throws Exception
     {
         String filter = "(&(ou=Human Resources)(uid=akarasulu)";
@@ -102,6 +108,7 @@
     }
 
 
+    @Test
     public void testBranchNormalizedComplex() throws Exception
     {
         String filter1 = "(&(a=A)(|(b=B)(c=C)))";

Modified: directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/filter/FilterNodeEqualityTest.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/filter/FilterNodeEqualityTest.java?rev=753300&r1=753299&r2=753300&view=diff
==============================================================================
--- directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/filter/FilterNodeEqualityTest.java
(original)
+++ directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/filter/FilterNodeEqualityTest.java
Fri Mar 13 15:21:42 2009
@@ -21,8 +21,9 @@
 
 
 import org.apache.directory.shared.ldap.entry.client.ClientStringValue;
-
-import junit.framework.TestCase;
+import org.junit.Test;
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertFalse;
 
 
 /**
@@ -31,8 +32,9 @@
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  * @version $Rev: 575783 $
  */
-public class FilterNodeEqualityTest extends TestCase
+public class FilterNodeEqualityTest
 {
+    @Test
     public void testEqualityEquals()
     {
         EqualityNode<String> eqNode1 = new EqualityNode<String>( "attr1", new
ClientStringValue( "test" ) );
@@ -56,6 +58,7 @@
     }
 
 
+    @Test
     public void testGreaterEqEquals()
     {
         GreaterEqNode<String> greaterEqNode1 = new GreaterEqNode<String>( "attr1",
new ClientStringValue( "test" ) );
@@ -72,6 +75,7 @@
     }
 
 
+    @Test
     public void testLessEqEquals()
     {
         LessEqNode<String> lessEqNode1 = new LessEqNode<String>( "attr1", new
ClientStringValue( "test" ) );
@@ -87,6 +91,7 @@
     }
 
 
+    @Test
     public void testApproximateEqEquals()
     {
         ApproximateNode<String> approximateNode1 = new ApproximateNode<String>(
"attr1", new ClientStringValue( "test" ) );
@@ -104,6 +109,7 @@
     }
 
 
+    @Test
     public void testPresenceEquals()
     {
         PresenceNode presenceNode1 = new PresenceNode( "attr1" );
@@ -116,6 +122,7 @@
     }
 
 
+    @Test
     public void testSubstringEquals()
     {
     }



Mime
View raw message