db-jdo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From m..@apache.org
Subject svn commit: r942247 - /db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/api/persistencemanager/DatastoreTimeout.java
Date Fri, 07 May 2010 21:57:06 GMT
Author: mbo
Date: Fri May  7 21:57:06 2010
New Revision: 942247

URL: http://svn.apache.org/viewvc?rev=942247&view=rev
Log:
JDO-623: added assertion ids to DatastoreTimeout test case

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

Modified: db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/api/persistencemanager/DatastoreTimeout.java
URL: http://svn.apache.org/viewvc/db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/api/persistencemanager/DatastoreTimeout.java?rev=942247&r1=942246&r2=942247&view=diff
==============================================================================
--- db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/api/persistencemanager/DatastoreTimeout.java
(original)
+++ db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/api/persistencemanager/DatastoreTimeout.java
Fri May  7 21:57:06 2010
@@ -39,7 +39,7 @@ import org.apache.jdo.tck.util.ThreadExc
  *<BR>
  *<B>Keywords:</B> datastore timeout 
  *<BR>
- *<B>Assertion ID:</B> A??
+ *<B>Assertion ID:</B> A12.6.9-1, A14.6.1-7
  *<BR>
  *<B>Assertion Description: </B>
  */
@@ -48,13 +48,13 @@ public class DatastoreTimeout extends JD
 
     /** */
     private static final String ASSERTION_FAILED = 
-        "Assertion A?? (DatastoreTimeout) failed: ";
+        "Assertion A12.6.9-1, A14.6.1-7 (DatastoreTimeout) failed: ";
 
     /** Timeout value for datastore read */
-    private static Integer READ_TIMEOUT = new Integer(10);
+    private static Integer READ_TIMEOUT = new Integer(100);
 
     /** Timeout value for datastore write */
-    private static Integer WRITE_TIMEOUT = new Integer(10);
+    private static Integer WRITE_TIMEOUT = new Integer(100);
 
     /** Zero Timeout value */
     private static Integer ZERO_TIMEOUT = new Integer(0);
@@ -89,6 +89,8 @@ public class DatastoreTimeout extends JD
     /** Method testing DatastoreReadTimeout. */
     public void testDatastoreReadTimeout() throws Exception {
 
+        if (debug) logger.debug("isDatastoreTimeoutSupported:" + isDatastoreTimeoutSupported());
+
         // Parallel thread writing the instances and causing them to be locked
         ThreadExceptionHandler group = new ThreadExceptionHandler();
         ParallelWriter runnable = new ParallelWriter(THREAD_SLEEP_MILLIS_LONG);
@@ -119,6 +121,8 @@ public class DatastoreTimeout extends JD
     /** Method testing DatastoreWriteTimeout. */
     public void testDatastoreWriteTimeout() throws Exception {
 
+        if (debug) logger.debug("isDatastoreTimeoutSupported:" + isDatastoreTimeoutSupported());
+
         // Parallel thread reading the instances and causing them to be locked
         ThreadExceptionHandler group = new ThreadExceptionHandler();
         ParallelReader runnable = new ParallelReader(THREAD_SLEEP_MILLIS_LONG);



Mime
View raw message