svn commit: r1843936 - /ofbiz/ofbiz-framework/trunk/framework/entity/src/test/java/org/apache/ofbiz/entity/EntityConditionVisitorTests.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r1843936 - /ofbiz/ofbiz-framework/trunk/framework/entity/src/test/java/org/apache/ofbiz/entity/EntityConditionVisitorTests.java

pgil
Author: pgil
Date: Mon Oct 15 19:16:17 2018
New Revision: 1843936

URL: http://svn.apache.org/viewvc?rev=1843936&view=rev
Log:
Improved: Improve entityConditionVisitor basic test
(OFBIZ-10593)

Use print instead of println to avoid newline failure on windows, thanks Jacques for the feedback.

Modified:
    ofbiz/ofbiz-framework/trunk/framework/entity/src/test/java/org/apache/ofbiz/entity/EntityConditionVisitorTests.java

Modified: ofbiz/ofbiz-framework/trunk/framework/entity/src/test/java/org/apache/ofbiz/entity/EntityConditionVisitorTests.java
URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/framework/entity/src/test/java/org/apache/ofbiz/entity/EntityConditionVisitorTests.java?rev=1843936&r1=1843935&r2=1843936&view=diff
==============================================================================
--- ofbiz/ofbiz-framework/trunk/framework/entity/src/test/java/org/apache/ofbiz/entity/EntityConditionVisitorTests.java (original)
+++ ofbiz/ofbiz-framework/trunk/framework/entity/src/test/java/org/apache/ofbiz/entity/EntityConditionVisitorTests.java Mon Oct 15 19:16:17 2018
@@ -51,36 +51,36 @@ public class EntityConditionVisitorTests
         expr.accept(new EntityConditionVisitor() {
             @Override
             public void visit(EntityConditionFunction func) {
-                pw.println("EntityConditionFunction");
+                pw.print("EntityConditionFunction");
             }
 
             @Override
             public <T extends EntityCondition> void visit(EntityConditionList<T> l) {
-                pw.println("EntityConditionList");
+                pw.print("EntityConditionList");
             }
 
             @Override
             public void visit(EntityFieldMap m) {
-                pw.println("EntityFieldMap");
+                pw.print("EntityFieldMap");
             }
 
             @Override
             public void visit(EntityDateFilterCondition df) {
-                pw.println("EntityDateFilterConfition");
+                pw.print("EntityDateFilterConfition");
             }
 
             @Override
             public void visit(EntityExpr expr) {
-                pw.println("EntityExpr");
+                pw.print("EntityExpr");
             }
 
             @Override
             public void visit(EntityWhereString ws) {
-                pw.println("EntityWhereString");
+                pw.print("EntityWhereString");
             }
         });
         pw.flush();
-        assertEquals("EntityExpr\n", os.toString());
+        assertEquals("EntityExpr", os.toString());
     }
 
     /* Checks the more complex example which asserts the presence of a raw string