db-jdo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c..@apache.org
Subject svn commit: r452641 - /db/jdo/branches/2.0.1/tck20/src/java/org/apache/jdo/tck/api/instancecallbacks/NoAccessToFieldsAfterPredelete.java
Date Tue, 03 Oct 2006 21:51:23 GMT
Author: clr
Date: Tue Oct  3 14:51:23 2006
New Revision: 452641

URL: http://svn.apache.org/viewvc?view=rev&rev=452641
Log:
JDO-413 updated test to allow either exception or not for field access after preDelete

Modified:
    db/jdo/branches/2.0.1/tck20/src/java/org/apache/jdo/tck/api/instancecallbacks/NoAccessToFieldsAfterPredelete.java

Modified: db/jdo/branches/2.0.1/tck20/src/java/org/apache/jdo/tck/api/instancecallbacks/NoAccessToFieldsAfterPredelete.java
URL: http://svn.apache.org/viewvc/db/jdo/branches/2.0.1/tck20/src/java/org/apache/jdo/tck/api/instancecallbacks/NoAccessToFieldsAfterPredelete.java?view=diff&rev=452641&r1=452640&r2=452641
==============================================================================
--- db/jdo/branches/2.0.1/tck20/src/java/org/apache/jdo/tck/api/instancecallbacks/NoAccessToFieldsAfterPredelete.java
(original)
+++ db/jdo/branches/2.0.1/tck20/src/java/org/apache/jdo/tck/api/instancecallbacks/NoAccessToFieldsAfterPredelete.java
Tue Oct  3 14:51:23 2006
@@ -113,49 +113,56 @@
     void performAccessFieldTests(String title, InstanceCallbackClass o) {
         try {
             short x1 = o.childToDelete;
-            fail(ASSERTION_FAILED, title + "Accessed persistent short field childToDelete--should
have gotten JDOUserException");
+            // http://issues.apache.org/jira/browse/JDO-413
+            // fail(ASSERTION_FAILED, title + "Accessed persistent short field childToDelete--should
have gotten JDOUserException");
         } catch (JDOUserException e) {
             // expected
         }
         
         try {
             double x2 = o.doubleValue;
-            fail(ASSERTION_FAILED, title + "Accessed persistent double field doubleValue--should
have gotten JDOUserException");
+            // http://issues.apache.org/jira/browse/JDO-413
+            // fail(ASSERTION_FAILED, title + "Accessed persistent double field doubleValue--should
have gotten JDOUserException");
         } catch (JDOUserException e) {
             // expected
         }
         
         try {
             char x3 = o.charValue;
-            fail(ASSERTION_FAILED, title + "Accessed persistent char field charValue--should
have gotten JDOUserException");
+            // http://issues.apache.org/jira/browse/JDO-413
+            // fail(ASSERTION_FAILED, title + "Accessed persistent char field charValue--should
have gotten JDOUserException");
         } catch (JDOUserException e) {
             // expected
         }
         
         try {
             String x4 = o.name;
-            fail(ASSERTION_FAILED,title + "Accessed persistent String field name--should
have gotten JDOUserException");
+            // http://issues.apache.org/jira/browse/JDO-413
+            // fail(ASSERTION_FAILED,title + "Accessed persistent String field name--should
have gotten JDOUserException");
         } catch (JDOUserException e) {
             // expected
         }
         
         try {
             Date x5 = o.timeStamp;
-            fail(ASSERTION_FAILED, title + "Accessed persistent Date field timeStamp--should
have gotten JDOUserException");
+            // http://issues.apache.org/jira/browse/JDO-413
+            // fail(ASSERTION_FAILED, title + "Accessed persistent Date field timeStamp--should
have gotten JDOUserException");
         } catch (JDOUserException e) {
             // expected
         }
         
         try {
             HashSet x6 = o.children;
-            fail(ASSERTION_FAILED, title + "Accessed persistent HashSet field Children--should
have gotten JDOUserException");
+            // http://issues.apache.org/jira/browse/JDO-413
+            // fail(ASSERTION_FAILED, title + "Accessed persistent HashSet field Children--should
have gotten JDOUserException");
         } catch (JDOUserException e) {
             // expected
         }
         
         try {
             InstanceCallbackClass x7 = o.nextObj;
-            fail(ASSERTION_FAILED, title + "Accessed persistent InstanceCallbackClass reference
field nextObj--should have gotten JDOUserException");
+            // http://issues.apache.org/jira/browse/JDO-413
+            // fail(ASSERTION_FAILED, title + "Accessed persistent InstanceCallbackClass
reference field nextObj--should have gotten JDOUserException");
         } catch (JDOUserException e) {
             // expected
         }



Mime
View raw message