Apache JDO Project - [jira] Reopened: (JDO-61) Test

This is Interesting: Free IT Magazines  
Home > Archive > Apache JDO Project > April 2006 > [jira] Reopened: (JDO-61) Test





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author [jira] Reopened: (JDO-61) Test
Michael Bouschen (JIRA)

2006-04-24, 7:57 am

[ http://issues.apache.org/jira/browse/JDO-61?page=all ]

Michael Bouschen reopened JDO-61:
---------------------------------


> Test InstancesPersistedPriorToIterationReturn
ed 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. InstancesPersistedPriorToIterationReturn
ed 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 (InstancesPersistedPriorToIterationRetur
ned) failed:
> [java] RUN InstancesPersistedPriorToIterationReturn
ed.test FAILURE
> [java] Iterator: 2 should be 3>junit.framework.AssertionFailedError: Assertion A15.3-2 (InstancesPersistedPriorToIterationRetur
ned) 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. InstancesPersistedPriorToIterationReturn
ed. test(InstancesPersistedPriorToIterationR
eturned.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. InstancesPersistedPriorToIterationReturn
ed)junit.framework.AssertionFailedError: Assertion A15.3-2 (InstancesPersistedPriorToIterationRetur
ned) 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. InstancesPersistedPriorToIterationReturn
ed. test(InstancesPersistedPriorToIterationR
eturned.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. InstancesPersistedPriorToIterationReturn
ed. main(InstancesPersistedPriorToIterationR
eturned.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. InstancesPersistedPriorToIterationReturn
ed. main(InstancesPersistedPriorToIterationR
eturned.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/secur...nistrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com