db-jdo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Bouschen (JIRA)" <j...@apache.org>
Subject [jira] Reopened: (JDO-61) Test InstancesPersistedPriorToIterationReturned fails. The new instance is not part of the iteration.
Date Sat, 22 Apr 2006 19:36:07 GMT
     [ http://issues.apache.org/jira/browse/JDO-61?page=all ]
     
Michael Bouschen reopened JDO-61:
---------------------------------


> Test InstancesPersistedPriorToIterationReturned fails. The new instance is not part of
the iteration.
> -----------------------------------------------------------------------------------------------------
>
>          Key: JDO-61
>          URL: http://issues.apache.org/jira/browse/JDO-61
>      Project: JDO
>         Type: Bug

>   Components: tck20
>  Environment: JPOX
>     Reporter: Craig Russell
>     Assignee: Erik Bengtson

>
> The test output indicates that instances persisted before an iterator is obtained are
not included in the iteration. This appears to be a JPOX bug.
>     public void test() {
>         try {
>             beginTransaction();
>             getPM().setIgnoreCache(false);
>             Extent ex = getPM().getExtent (Employee.class, true);
>             addEmployee();
>             Iterator it = ex.iterator();
>             int count = countIterator(it);
>             rollbackTransaction();
>             beginTransaction();
>             Iterator it2 = ex.iterator();
>             int count2 = countIterator(it2);
>             commitTransaction();
>     
>             if (count != 3) {
>                 fail(ASSERTION_FAILED,
>                      "Iterator: " + count + " should be 3");
>             }
>             if (count2 != 2) {
>                 fail(ASSERTION_FAILED,
>                      "Iterator2: " + count2 + "should be 2");
>             }
>         } 
>         finally {
>         }
>     }
>     [echo] Run TCK test org.apache.jdo.tck.extents.InstancesPersistedPriorToIterationReturned
on the RI with configuration /Users/clr/apachejdo/jdo/trunk/tck20/test/conf/applicationidentity.conf
>     [java] [DEBUG] tck - Found company
>     [java] [DEBUG] tck - Iterator: 2 should be 3
>     [java] [ERROR] tck - Exception during setUp or runtest:  <junit.framework.AssertionFailedError:
Assertion A15.3-2 (InstancesPersistedPriorToIterationReturned) failed: 
>     [java] RUN InstancesPersistedPriorToIterationReturned.test   FAILURE
>     [java] Iterator: 2 should be 3>junit.framework.AssertionFailedError: Assertion
A15.3-2 (InstancesPersistedPriorToIterationReturned) failed: 
>     [java] Iterator: 2 should be 3
>     [java]      at junit.framework.Assert.fail(Assert.java:47)
>     [java]      at org.apache.jdo.tck.JDO_Test.fail(JDO_Test.java:510)
>     [java] Time: 33.099
>     [java]      at org.apache.jdo.tck.extents.InstancesPersistedPriorToIterationReturned.test(InstancesPersistedPriorToIterationReturned.java:74)
>     [java]      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     [java] There was 1 failure:
>     [java]      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>     [java] 1) test(org.apache.jdo.tck.extents.InstancesPersistedPriorToIterationReturned)junit.framework.AssertionFailedError:
Assertion A15.3-2 (InstancesPersistedPriorToIterationReturned) failed: 
>     [java]      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>     [java]      at java.lang.reflect.Method.invoke(Method.java:324)
>     [java] Iterator: 2 should be 3
>     [java]      at org.apache.jdo.tck.JDO_Test.fail(JDO_Test.java:510)
>     [java]      at junit.framework.TestCase.runTest(TestCase.java:154)
>     [java]      at org.apache.jdo.tck.JDO_Test.runBare(JDO_Test.java:181)
>     [java]      at junit.framework.TestResult$1.protect(TestResult.java:106)
>     [java]      at org.apache.jdo.tck.extents.InstancesPersistedPriorToIterationReturned.test(InstancesPersistedPriorToIterationReturned.java:74)
>     [java]      at junit.framework.TestResult.runProtected(TestResult.java:124)
>     [java]      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     [java]      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>     [java]      at junit.framework.TestResult.run(TestResult.java:109)
>     [java]      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>     [java]      at org.apache.jdo.tck.JDO_Test.runBare(JDO_Test.java:181)
>     [java]      at junit.framework.TestCase.run(TestCase.java:118)
>     [java]      at junit.framework.TestSuite.runTest(TestSuite.java:208)
>     [java]      at org.apache.jdo.tck.util.BatchTestRunner.run(BatchTestRunner.java:75)
>     [java]      at org.apache.jdo.tck.util.BatchTestRunner.run(BatchTestRunner.java:70)
>     [java]      at junit.framework.TestSuite.run(TestSuite.java:203)
>     [java]      at junit.textui.TestRunner.doRun(TestRunner.java:116)
>     [java]      at org.apache.jdo.tck.extents.InstancesPersistedPriorToIterationReturned.main(InstancesPersistedPriorToIterationReturned.java:53)
>     [java]      at junit.textui.TestRunner.doRun(TestRunner.java:109)
>     [java]      at org.apache.jdo.tck.util.BatchTestRunner.run(BatchTestRunner.java:75)
>     [java] FAILURES!!!
>     [java] Tests run: 1,  Failures: 1,  Errors: 0
>     [java]      at org.apache.jdo.tck.util.BatchTestRunner.run(BatchTestRunner.java:70)
>     [java]      at org.apache.jdo.tck.extents.InstancesPersistedPriorToIterationReturned.main(InstancesPersistedPriorToIterationReturned.java:53)
>     [java] 
>     [java] [DEBUG] tck - Free memory: 9774832

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message