directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r577360 - /directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/filter/BranchNormalizedVisitorTest.java
Date Wed, 19 Sep 2007 16:47:51 GMT
Author: elecharny
Date: Wed Sep 19 09:47:50 2007
New Revision: 577360

URL: http://svn.apache.org/viewvc?rev=577360&view=rev
Log:
Used the toString() method instead of the printToBuffer() for filters

Modified:
    directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/filter/BranchNormalizedVisitorTest.java

Modified: directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/filter/BranchNormalizedVisitorTest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/filter/BranchNormalizedVisitorTest.java?rev=577360&r1=577359&r2=577360&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/filter/BranchNormalizedVisitorTest.java
(original)
+++ directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/filter/BranchNormalizedVisitorTest.java
Wed Sep 19 09:47:50 2007
@@ -49,15 +49,7 @@
 
         visitor.visit( altered );
 
-        StringBuilder oriBuf = new StringBuilder();
-
-        ori.printToBuffer( oriBuf );
-
-        StringBuilder alteredBuf = new StringBuilder();
-
-        altered.printToBuffer( alteredBuf );
-
-        assertEquals( oriBuf.toString(), alteredBuf.toString() );
+        assertEquals( ori.toString(), altered.toString() );
     }
 
 
@@ -75,15 +67,7 @@
 
         visitor.visit( altered );
 
-        StringBuilder oriBuf = new StringBuilder();
-
-        ori.printToBuffer( oriBuf );
-
-        StringBuilder alteredBuf = new StringBuilder();
-
-        altered.printToBuffer( alteredBuf );
-
-        assertEquals( oriBuf.toString(), alteredBuf.toString() );
+        assertEquals( ori.toString(), altered.toString() );
     }
 
 
@@ -103,15 +87,7 @@
 
         visitor.visit( altered );
 
-        StringBuilder oriBuf = new StringBuilder();
-
-        ori.printToBuffer( oriBuf );
-
-        StringBuilder alteredBuf = new StringBuilder();
-
-        altered.printToBuffer( alteredBuf );
-
-        assertFalse( oriBuf.toString().equals( alteredBuf.toString() ) );
+        assertFalse( ori.toString().equals( altered.toString() ) );
     }
 
 
@@ -131,15 +107,7 @@
 
         visitor.visit( altered );
 
-        StringBuilder oriBuf = new StringBuilder();
-
-        ori.printToBuffer( oriBuf );
-
-        StringBuilder alteredBuf = new StringBuilder();
-
-        altered.printToBuffer( alteredBuf );
-
-        assertTrue( oriBuf.toString().equals( alteredBuf.toString() ) );
+        assertTrue( ori.toString().equals( altered.toString() ) );
     }
 
 



Mime
View raw message