db-jdo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mcai...@apache.org
Subject svn commit: r573671 - in /db/jdo/trunk/tck2/src: conf/relationshipNoRelationships.conf java/org/apache/jdo/tck/mapping/Relationship1ToManyNoRelationships.java
Date Fri, 07 Sep 2007 18:53:25 GMT
Author: mcaisse
Date: Fri Sep  7 11:53:24 2007
New Revision: 573671

URL: http://svn.apache.org/viewvc?rev=573671&view=rev
Log:
JDO-521 fixes

Modified:
    db/jdo/trunk/tck2/src/conf/relationshipNoRelationships.conf
    db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/mapping/Relationship1ToManyNoRelationships.java

Modified: db/jdo/trunk/tck2/src/conf/relationshipNoRelationships.conf
URL: http://svn.apache.org/viewvc/db/jdo/trunk/tck2/src/conf/relationshipNoRelationships.conf?rev=573671&r1=573670&r2=573671&view=diff
==============================================================================
--- db/jdo/trunk/tck2/src/conf/relationshipNoRelationships.conf (original)
+++ db/jdo/trunk/tck2/src/conf/relationshipNoRelationships.conf Fri Sep  7 11:53:24 2007
@@ -24,3 +24,4 @@
     org.apache.jdo.tck.mapping.RelationshipManyToManyNoRelationships \
     org.apache.jdo.tck.mapping.RelationshipNegative1To1Test \
     org.apache.jdo.tck.mapping.RelationshipNegative1ToManyTest \
+

Modified: db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/mapping/Relationship1ToManyNoRelationships.java
URL: http://svn.apache.org/viewvc/db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/mapping/Relationship1ToManyNoRelationships.java?rev=573671&r1=573670&r2=573671&view=diff
==============================================================================
--- db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/mapping/Relationship1ToManyNoRelationships.java
(original)
+++ db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/mapping/Relationship1ToManyNoRelationships.java
Fri Sep  7 11:53:24 2007
@@ -80,12 +80,12 @@
             // Preconditions
             assertTrue(ASSERTION_FAILED +
                 ": Test aborted, precondition is false; " +
-                "expected emp.getDepartment()to be dept1",
-                emp1.getDepartment() == dept1);
+                "expected emp.getDepartment()to be null",
+                emp1.getDepartment() == null);
             assertTrue(ASSERTION_FAILED + testMethod +
                 ": Test aborted, precondition is false; " +
-                "expected dept.getEmployees() to contain emp1",
-                dept1.getEmployees().contains(emp1));
+                "expected dept.getEmployees() to be empty",
+                dept1.getEmployees().isEmpty());
         }
     }
     



Mime
View raw message