db-jdo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c..@apache.org
Subject svn commit: r384648 - /db/jdo/trunk/tck20/src/java/org/apache/jdo/tck/lifecycle/StateTransitions.java
Date Thu, 09 Mar 2006 23:50:41 GMT
Author: clr
Date: Thu Mar  9 15:50:39 2006
New Revision: 384648

URL: http://svn.apache.org/viewcvs?rev=384648&view=rev
Log:
JDO-191 Changed test to run just JDO 1 state transitions; will be fixed later

Modified:
    db/jdo/trunk/tck20/src/java/org/apache/jdo/tck/lifecycle/StateTransitions.java

Modified: db/jdo/trunk/tck20/src/java/org/apache/jdo/tck/lifecycle/StateTransitions.java
URL: http://svn.apache.org/viewcvs/db/jdo/trunk/tck20/src/java/org/apache/jdo/tck/lifecycle/StateTransitions.java?rev=384648&r1=384647&r2=384648&view=diff
==============================================================================
--- db/jdo/trunk/tck20/src/java/org/apache/jdo/tck/lifecycle/StateTransitions.java (original)
+++ db/jdo/trunk/tck20/src/java/org/apache/jdo/tck/lifecycle/StateTransitions.java Thu Mar
 9 15:50:39 2006
@@ -293,8 +293,8 @@
             if( operation == MAKENONTRANSACTIONAL &&
                 !(isNontransactionalReadSupported() || isNontransactionalWriteSupported())
)
                 continue;
-
-            for( current_state = 0; current_state < NUM_STATES; ++current_state){
+            int NUM_JDO1_STATES = NUM_STATES - 2; // JDO1 is tested so far here.
+            for( current_state = 0; current_state < NUM_JDO1_STATES; ++current_state){
                 if( scenario == OPTIMISTIC_TX && current_state == PERSISTENT_CLEAN
) continue;
                 if( (current_state == TRANSIENT_CLEAN || current_state == TRANSIENT_DIRTY)
&&
                     !isTransientTransactionalSupported() )



Mime
View raw message