db-jdo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c..@apache.org
Subject [db-jdo] 29/43: JDO-413 updated test to allow either exception or not for field access after preDelete
Date Fri, 07 May 2021 23:12:11 GMT
This is an automated email from the ASF dual-hosted git repository.

clr pushed a commit to branch origin/2.0.1
in repository https://gitbox.apache.org/repos/asf/db-jdo.git

commit 037fe6f5ff0ca7ff2e63e2b60bb0093a7605d178
Author: Craig L Russell <clr@apache.org>
AuthorDate: Tue Oct 3 21:51:23 2006 +0000

    JDO-413 updated test to allow either exception or not for field access after preDelete
---
 .../NoAccessToFieldsAfterPredelete.java             | 21 ++++++++++++++-------
 1 file changed, 14 insertions(+), 7 deletions(-)

diff --git a/tck20/src/java/org/apache/jdo/tck/api/instancecallbacks/NoAccessToFieldsAfterPredelete.java
b/tck20/src/java/org/apache/jdo/tck/api/instancecallbacks/NoAccessToFieldsAfterPredelete.java
index 78b429a..c21774d 100644
--- a/tck20/src/java/org/apache/jdo/tck/api/instancecallbacks/NoAccessToFieldsAfterPredelete.java
+++ b/tck20/src/java/org/apache/jdo/tck/api/instancecallbacks/NoAccessToFieldsAfterPredelete.java
@@ -113,49 +113,56 @@ public class NoAccessToFieldsAfterPredelete extends JDO_Test {
     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