db-jdo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mcai...@apache.org
Subject svn commit: r714156 - /db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/api/persistencemanager/getobject/GetObjectIdForPersistentInterface.java
Date Fri, 14 Nov 2008 21:47:15 GMT
Author: mcaisse
Date: Fri Nov 14 13:47:15 2008
New Revision: 714156

URL: http://svn.apache.org/viewvc?rev=714156&view=rev
Log:
JDO-11 GetObjectIdForPersistentInterface - Implementation Class / PICompany / ICompany  Mess

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

Modified: db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/api/persistencemanager/getobject/GetObjectIdForPersistentInterface.java
URL: http://svn.apache.org/viewvc/db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/api/persistencemanager/getobject/GetObjectIdForPersistentInterface.java?rev=714156&r1=714155&r2=714156&view=diff
==============================================================================
--- db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/api/persistencemanager/getobject/GetObjectIdForPersistentInterface.java
(original)
+++ db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/api/persistencemanager/getobject/GetObjectIdForPersistentInterface.java
Fri Nov 14 13:47:15 2008
@@ -27,6 +27,7 @@
 
 import org.apache.jdo.tck.pc.company.Company;
 import org.apache.jdo.tck.pc.company.ICompany;
+import org.apache.jdo.tck.pc.company.PICompany;
 
 import org.apache.jdo.tck.util.BatchTestRunner;
 
@@ -60,7 +61,7 @@
     }
 
     public void localSetUp() {
-        addTearDownClass(ICompany.class);
+        addTearDownClass(PICompany.class);
     }
 
     /** */
@@ -73,7 +74,7 @@
         }
         pm = getPM();
         Transaction tx = pm.currentTransaction();
-        ICompany icompany = (ICompany)pm.newInstance(ICompany.class);
+        ICompany icompany = (ICompany)pm.newInstance(PICompany.class);
         icompany.setCompanyid(1001);
         icompany.setName("GooTube");
         icompany.setFounded(new Date());
@@ -83,12 +84,12 @@
         LongIdentity ioid = (LongIdentity)pm.getObjectId(icompany);
         tx.commit();
 
-        Class icompanyOidClass = ioid.getTargetClass();
-        if (icompanyOidClass != icompany.getClass()) 
+        Class pICompanyOidTargetClass = ioid.getTargetClass();
+        if (pICompanyOidTargetClass != PICompany.class) 
             appendMessage(ASSERTION_FAILED +
                  " getObjectId(icompany) should return interface class.\n" +
                     "expected: " + icompany.getClass().getName() + "\n" +
-                    "actual: " + icompanyOidClass.getName());
+                    "actual: " + pICompanyOidTargetClass.getName());
         failOnError();
 
     }



Mime
View raw message