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 mc...@apache.org on 2008/11/14 22:51:24 UTC
svn commit: r714157 -
/db/jdo/branches/2.2.1/tck2/src/java/org/apache/jdo/tck/api/persistencemanager/getobject/GetObjectIdForPersistentInterface.java
Author: mcaisse
Date: Fri Nov 14 13:51:24 2008
New Revision: 714157
URL: http://svn.apache.org/viewvc?rev=714157&view=rev
Log:
JDO-611 GetObjectIdForPersistentInterface - Implementation Class / PICompany / ICompany Mess
Modified:
db/jdo/branches/2.2.1/tck2/src/java/org/apache/jdo/tck/api/persistencemanager/getobject/GetObjectIdForPersistentInterface.java
Modified: db/jdo/branches/2.2.1/tck2/src/java/org/apache/jdo/tck/api/persistencemanager/getobject/GetObjectIdForPersistentInterface.java
URL: http://svn.apache.org/viewvc/db/jdo/branches/2.2.1/tck2/src/java/org/apache/jdo/tck/api/persistencemanager/getobject/GetObjectIdForPersistentInterface.java?rev=714157&r1=714156&r2=714157&view=diff
==============================================================================
--- db/jdo/branches/2.2.1/tck2/src/java/org/apache/jdo/tck/api/persistencemanager/getobject/GetObjectIdForPersistentInterface.java (original)
+++ db/jdo/branches/2.2.1/tck2/src/java/org/apache/jdo/tck/api/persistencemanager/getobject/GetObjectIdForPersistentInterface.java Fri Nov 14 13:51:24 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();
}