db-jdo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c..@apache.org
Subject svn commit: r1462398 - /db/jdo/trunk/tck/src/java/org/apache/jdo/tck/api/persistencemanager/GetProperties.java
Date Fri, 29 Mar 2013 04:36:17 GMT
Author: clr
Date: Fri Mar 29 04:36:17 2013
New Revision: 1462398

URL: http://svn.apache.org/r1462398
Log:
improve error reporting for GetProperties

Modified:
    db/jdo/trunk/tck/src/java/org/apache/jdo/tck/api/persistencemanager/GetProperties.java

Modified: db/jdo/trunk/tck/src/java/org/apache/jdo/tck/api/persistencemanager/GetProperties.java
URL: http://svn.apache.org/viewvc/db/jdo/trunk/tck/src/java/org/apache/jdo/tck/api/persistencemanager/GetProperties.java?rev=1462398&r1=1462397&r2=1462398&view=diff
==============================================================================
--- db/jdo/trunk/tck/src/java/org/apache/jdo/tck/api/persistencemanager/GetProperties.java
(original)
+++ db/jdo/trunk/tck/src/java/org/apache/jdo/tck/api/persistencemanager/GetProperties.java
Fri Mar 29 04:36:17 2013
@@ -109,12 +109,13 @@ public class GetProperties extends JDO_T
             errorIfEqual("getProperties().get(" + propertyName + ")", null, result0);
             pm.setProperty(propertyName, testValue1);
             Object result1 = pm.getProperties().get(propertyName);
-            errorIfNotEqual("after pm.setProperty(" + propertyName + "), getProperties().get("
+ propertyName + ")",
+            errorIfNotEqual("after pm.setProperty(" + propertyName + ", " + testValue1 +
"), getProperties().get(" + propertyName + ")",
                     testValue1, result1);
+
             pm.setProperty(propertyName, testValue2);
             Object result2 = pm.getProperties().get(propertyName);
-            errorIfNotEqual("after pm.setProperty(" + propertyName + ")" + " getProperties().get("
+ propertyName + ")",
-                    testValue1, result2);
+            errorIfNotEqual("after pm.setProperty(" + propertyName + ", " + testValue2 +
"), getProperties().get(" + propertyName + ")",
+                    testValue2, result2);
         }
     }
 
@@ -131,11 +132,12 @@ public class GetProperties extends JDO_T
         public void test(PersistenceManager pm, Set<String> supportedProperties) {
             pm.setProperty(propertyName, testValue1);
             Object result1 = get(pm);
-            errorIfNotEqual("after pm.setProperty(XXX), getXXX for " + propertyName,
+            errorIfNotEqual("after pm.setProperty(" + propertyName + ", " + testValue1 +
"), getXXX for " + propertyName,
                     testValue1, result1);
+
             set(pm, testValue2);
             Object result2 = pm.getProperties().get(propertyName);
-            errorIfNotEqual("after pm.setXXX(), getProperties.get(XXX) for " + propertyName,
+            errorIfNotEqual("after pm.setXXX(), getProperties.get(" + propertyName + ")",
                     testValue2, result2);
         }
     };



Mime
View raw message