db-jdo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c..@apache.org
Subject svn commit: r190027 - in /incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/transactions: Commit.java GetPersistenceManager.java GetSynchronization.java IsActiveUntilAfterCompletionMethodCalled.java Rollback.java SetNontransactionalRead.java WhenNontransactionalReadIsFalse.java
Date Fri, 10 Jun 2005 22:32:41 GMT
Author: clr
Date: Fri Jun 10 15:32:39 2005
New Revision: 190027

URL: http://svn.apache.org/viewcvs?rev=190027&view=rev
Log:
add teardown objects to clean up database for other tests

Modified:
    incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/transactions/Commit.java
    incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/transactions/GetPersistenceManager.java
    incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/transactions/GetSynchronization.java
    incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/transactions/IsActiveUntilAfterCompletionMethodCalled.java
    incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/transactions/Rollback.java
    incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/transactions/SetNontransactionalRead.java
    incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/transactions/WhenNontransactionalReadIsFalse.java

Modified: incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/transactions/Commit.java
URL: http://svn.apache.org/viewcvs/incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/transactions/Commit.java?rev=190027&r1=190026&r2=190027&view=diff
==============================================================================
--- incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/transactions/Commit.java (original)
+++ incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/transactions/Commit.java Fri Jun
10 15:32:39 2005
@@ -110,6 +110,7 @@
         try {
             tx.begin();
             PCPoint p1 = new PCPoint(1,3);
+            addTearDownInstance((Object)p1);
             pm.makePersistent(p1);
             if (!JDOHelper.isDirty(p1)) {
                 fail(ASSERTION_FAILED,

Modified: incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/transactions/GetPersistenceManager.java
URL: http://svn.apache.org/viewcvs/incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/transactions/GetPersistenceManager.java?rev=190027&r1=190026&r2=190027&view=diff
==============================================================================
--- incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/transactions/GetPersistenceManager.java
(original)
+++ incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/transactions/GetPersistenceManager.java
Fri Jun 10 15:32:39 2005
@@ -75,6 +75,7 @@
         try {
             tx.begin();
             PCPoint p1 = new PCPoint(1,3);
+            addTearDownInstance((Object)p1);
             pm.makePersistent(p1);
             PersistenceManager pm1 = tx.getPersistenceManager();
             tx.commit();

Modified: incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/transactions/GetSynchronization.java
URL: http://svn.apache.org/viewcvs/incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/transactions/GetSynchronization.java?rev=190027&r1=190026&r2=190027&view=diff
==============================================================================
--- incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/transactions/GetSynchronization.java
(original)
+++ incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/transactions/GetSynchronization.java
Fri Jun 10 15:32:39 2005
@@ -106,6 +106,7 @@
         try {
             tx.begin();
             PCPoint p1 = new PCPoint(1,3);
+            addTearDownInstance((Object)p1);
             pm.makePersistent(p1);
             
             tx.setSynchronization(this);

Modified: incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/transactions/IsActiveUntilAfterCompletionMethodCalled.java
URL: http://svn.apache.org/viewcvs/incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/transactions/IsActiveUntilAfterCompletionMethodCalled.java?rev=190027&r1=190026&r2=190027&view=diff
==============================================================================
--- incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/transactions/IsActiveUntilAfterCompletionMethodCalled.java
(original)
+++ incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/transactions/IsActiveUntilAfterCompletionMethodCalled.java
Fri Jun 10 15:32:39 2005
@@ -107,6 +107,7 @@
         try {
             tx.begin();
             PCPoint p1 = new PCPoint(1,3);
+            addTearDownInstance((Object)p1);
             pm.makePersistent(p1);
             tx.setSynchronization(this);
             if (!tx.isActive()) {

Modified: incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/transactions/Rollback.java
URL: http://svn.apache.org/viewcvs/incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/transactions/Rollback.java?rev=190027&r1=190026&r2=190027&view=diff
==============================================================================
--- incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/transactions/Rollback.java (original)
+++ incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/transactions/Rollback.java Fri
Jun 10 15:32:39 2005
@@ -111,6 +111,7 @@
         try {
             tx.begin();
             PCPoint p1 = new PCPoint(1,3);
+            addTearDownInstance((Object)p1);
             pm.makePersistent(p1);
             tx.commit();
           

Modified: incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/transactions/SetNontransactionalRead.java
URL: http://svn.apache.org/viewcvs/incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/transactions/SetNontransactionalRead.java?rev=190027&r1=190026&r2=190027&view=diff
==============================================================================
--- incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/transactions/SetNontransactionalRead.java
(original)
+++ incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/transactions/SetNontransactionalRead.java
Fri Jun 10 15:32:39 2005
@@ -91,6 +91,8 @@
             tx.begin();
             Company c = new Company(1L, "MyCompany", new Date(), null);
             Department d = new Department(999, "MyDepartment", c);
+            addTearDownInstance((Object)c);
+            addTearDownInstance((Object)d);
             pm.makePersistent(c);
             pm.makePersistent(d);
             Object oid = pm.getObjectId(d);

Modified: incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/transactions/WhenNontransactionalReadIsFalse.java
URL: http://svn.apache.org/viewcvs/incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/transactions/WhenNontransactionalReadIsFalse.java?rev=190027&r1=190026&r2=190027&view=diff
==============================================================================
--- incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/transactions/WhenNontransactionalReadIsFalse.java
(original)
+++ incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/transactions/WhenNontransactionalReadIsFalse.java
Fri Jun 10 15:32:39 2005
@@ -83,6 +83,9 @@
             tx.begin();
             Company c = new Company(1L, "MyCompany", new Date(), null);
             Department d = new Department(999, "MyDepartment", c);
+            addTearDownInstance((Object)c);
+            addTearDownInstance((Object)d);
+            
             pm.makePersistent(c);
             pm.makePersistent(d);
             if (tx.getNontransactionalRead()) {



Mime
View raw message