db-jdo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c..@apache.org
Subject svn commit: r922104 - /db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/api/persistencemanager/getobject/GetObjectByIdExactClass.java
Date Fri, 12 Mar 2010 01:26:35 GMT
Author: clr
Date: Fri Mar 12 01:26:35 2010
New Revision: 922104

URL: http://svn.apache.org/viewvc?rev=922104&view=rev
Log:
Clean up description of test case for exact identity

Modified:
    db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/api/persistencemanager/getobject/GetObjectByIdExactClass.java

Modified: db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/api/persistencemanager/getobject/GetObjectByIdExactClass.java
URL: http://svn.apache.org/viewvc/db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/api/persistencemanager/getobject/GetObjectByIdExactClass.java?rev=922104&r1=922103&r2=922104&view=diff
==============================================================================
--- db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/api/persistencemanager/getobject/GetObjectByIdExactClass.java
(original)
+++ db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/api/persistencemanager/getobject/GetObjectByIdExactClass.java
Fri Mar 12 01:26:35 2010
@@ -37,14 +37,12 @@ import org.apache.jdo.tck.pc.singlefield
  *<BR>
  *<B>Keywords:</B> identity cache
  *<BR>
- *<B>Assertion ID:</B> A12.5.6-???.
+ *<B>Assertion ID:</B> A12.5.6-2.
  *<BR>
  *<B>Assertion Description: </B>
- If <code>PersistenceManager.getObjectById</code> is called with a value of
- <code>false</code> for the second parameter named <code>validate</code>,
- and there is not an instance already in the cache with the same JDO identity
- as the oid parameter, then this method creates an instance with the specified
- JDO identity, and returns it.
+ * If the validate flag is false, the user asserts that the instance exists
+ * and the object id represents the exact class of the persistent instance
+ * (specifically not a subclass or an interface).
  * If the class is abstract, throw JDOUserException (we cannot construct
  * a hollow instance of an abstract class). 
  * If the class is actually not correct, an exception with an
@@ -56,7 +54,7 @@ public class GetObjectByIdExactClass ext
     
     /** */
     private static final String ASSERTION_FAILED = 
-        "Assertion A12.5.6-??? (GetObjectById) failed: ";
+        "Assertion A12.5.6-2 (GetObjectById) failed: ";
 
     /** */
     private LongIdentity oid;



Mime
View raw message