db-jdo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c..@apache.org
Subject svn commit: r686305 - /db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/api/persistencemanagerfactory/FlushThrowsIfReadOnly.java
Date Fri, 15 Aug 2008 18:17:51 GMT
Author: clr
Date: Fri Aug 15 11:17:51 2008
New Revision: 686305

URL: http://svn.apache.org/viewvc?rev=686305&view=rev
Log:
JDO-597 Add more diagnostics to ReadOnly tests

Modified:
    db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/api/persistencemanagerfactory/FlushThrowsIfReadOnly.java

Modified: db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/api/persistencemanagerfactory/FlushThrowsIfReadOnly.java
URL: http://svn.apache.org/viewvc/db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/api/persistencemanagerfactory/FlushThrowsIfReadOnly.java?rev=686305&r1=686304&r2=686305&view=diff
==============================================================================
--- db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/api/persistencemanagerfactory/FlushThrowsIfReadOnly.java
(original)
+++ db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/api/persistencemanagerfactory/FlushThrowsIfReadOnly.java
Fri Aug 15 11:17:51 2008
@@ -99,6 +99,10 @@
                     "JDOReadOnlyException.");
         } catch (JDOReadOnlyException jDOReadOnlyException) {
             // good catch
+        } catch (Throwable t) {
+            fail("When the PersistenceManagerFactory is read only, " +
+                    "flush of a persistent-deleted instance must throw " +
+                    "JDOReadOnlyException. Flush threw " + t);
         }
         tx.rollback();
         pm.close();
@@ -121,6 +125,10 @@
                     "JDOReadOnlyException.");
         } catch (JDOReadOnlyException jDOReadOnlyException) {
             // good catch
+        } catch (Throwable t) {
+            fail("When the PersistenceManagerFactory is read only, " +
+                    "flush of a persistent-deleted instance must throw " +
+                    "JDOReadOnlyException. Flush threw " + t);
         }
         tx.rollback();
         pm.close();
@@ -143,6 +151,10 @@
                     "JDOReadOnlyException.");
         } catch (JDOReadOnlyException jDOReadOnlyException) {
             // good catch
+        } catch (Throwable t) {
+            fail("When the PersistenceManagerFactory is read only, " +
+                    "flush of a persistent-deleted instance must throw " +
+                    "JDOReadOnlyException. Flush threw " + t);
         }
         tx.rollback();
         pm.close();



Mime
View raw message