db-jdo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From m..@apache.org
Subject svn commit: r1807630 - in /db/jdo/trunk/tck/src/java/org/apache/jdo/tck/query/jdoql/operators: BooleanLogicalAND.java BooleanLogicalOR.java
Date Thu, 07 Sep 2017 18:20:35 GMT
Author: mbo
Date: Thu Sep  7 18:20:35 2017
New Revision: 1807630

URL: http://svn.apache.org/viewvc?rev=1807630&view=rev
Log:
JDO-745: fix negative tests to make use of string fields

Modified:
    db/jdo/trunk/tck/src/java/org/apache/jdo/tck/query/jdoql/operators/BooleanLogicalAND.java
    db/jdo/trunk/tck/src/java/org/apache/jdo/tck/query/jdoql/operators/BooleanLogicalOR.java

Modified: db/jdo/trunk/tck/src/java/org/apache/jdo/tck/query/jdoql/operators/BooleanLogicalAND.java
URL: http://svn.apache.org/viewvc/db/jdo/trunk/tck/src/java/org/apache/jdo/tck/query/jdoql/operators/BooleanLogicalAND.java?rev=1807630&r1=1807629&r2=1807630&view=diff
==============================================================================
--- db/jdo/trunk/tck/src/java/org/apache/jdo/tck/query/jdoql/operators/BooleanLogicalAND.java
(original)
+++ db/jdo/trunk/tck/src/java/org/apache/jdo/tck/query/jdoql/operators/BooleanLogicalAND.java
Thu Sep  7 18:20:35 2017
@@ -136,10 +136,10 @@ public class BooleanLogicalAND extends Q
         
         try {
             Query q = pm.newQuery(PrimitiveTypes.class, 
-                                  "intNotNull & intNotNull");
+                                  "stringNull & stringNull");
             Object result = q.execute();
             fail(ASSERTION_FAILED,
-                 "Query uisng bitwise & operator should throw JDOUserException.");
+                 "Query using & operator for non-supported types should throw JDOUserException.");
         }
         catch (JDOUserException ex) {
             // expected exception

Modified: db/jdo/trunk/tck/src/java/org/apache/jdo/tck/query/jdoql/operators/BooleanLogicalOR.java
URL: http://svn.apache.org/viewvc/db/jdo/trunk/tck/src/java/org/apache/jdo/tck/query/jdoql/operators/BooleanLogicalOR.java?rev=1807630&r1=1807629&r2=1807630&view=diff
==============================================================================
--- db/jdo/trunk/tck/src/java/org/apache/jdo/tck/query/jdoql/operators/BooleanLogicalOR.java
(original)
+++ db/jdo/trunk/tck/src/java/org/apache/jdo/tck/query/jdoql/operators/BooleanLogicalOR.java
Thu Sep  7 18:20:35 2017
@@ -138,10 +138,10 @@ public class BooleanLogicalOR extends Qu
         
         try {
             Query q = pm.newQuery(PrimitiveTypes.class, 
-                                  "intNotNull | intNotNull");
+                                  "stringNull | stringNull");
             Object result = q.execute();
             fail(ASSERTION_FAILED,
-                 "Query uisng bitwise | operator should throw JDOUserException.");
+                 "Query using | operator for non-supported types should throw JDOUserException.");
         }
         catch (JDOUserException ex) {
             // expected exception



Mime
View raw message