You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jdo-commits@db.apache.org by cl...@apache.org on 2005/05/07 00:02:53 UTC

svn commit: r168670 - /incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/models/fieldtypes/TestArrayCollections.java

Author: clr
Date: Fri May  6 15:02:53 2005
New Revision: 168670

URL: http://svn.apache.org/viewcvs?rev=168670&view=rev
Log:
Updated debug output

Modified:
    incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/models/fieldtypes/TestArrayCollections.java

Modified: incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/models/fieldtypes/TestArrayCollections.java
URL: http://svn.apache.org/viewcvs/incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/models/fieldtypes/TestArrayCollections.java?rev=168670&r1=168669&r2=168670&view=diff
==============================================================================
--- incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/models/fieldtypes/TestArrayCollections.java (original)
+++ incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/models/fieldtypes/TestArrayCollections.java Fri May  6 15:02:53 2005
@@ -167,16 +167,12 @@
 
             if(!Arrays.equals(val, compareWith)){
                 if (debug) {
-                    if ((compareWith != null) && (val != null)) {
-                        logger.debug("persistent instance = " + val.toString() +
-                                 "compareWith = " + compareWith.toString());
-                    }
-                    else {
-                        if (compareWith == null)
-                            logger.debug("Persistent instance is null."); 
-                        if (val == null)
-                            logger.debug("compareWith is null."); 
-                    }
+                    String message1 = compareWith==null?"compareWith was null!!!":
+                        compareWith.toString();
+                    String message2 = val==null?"val was null!!!":
+                        val.toString();
+                    logger.debug("compareWith: " + message1);
+                    logger.debug("val: "+ message2);
                 }
                 fail(ASSERTION_FAILED,
                      "Incorrect value for " + ArrayCollections.fieldSpecs[i]);