Apache JDO Project - [jira] Updated: (JDO-521) Create tests for relationship mapping

This is Interesting: Free IT Magazines  
Home > Archive > Apache JDO Project > August 2007 > [jira] Updated: (JDO-521) Create tests for relationship mapping





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] Updated: (JDO-521) Create tests for relationship mapping
Michelle Caisse (JIRA)

2007-08-24, 1:11 am


[ https://issues.apache.org/jira/brow...ls:all-tabpanel ]

Michelle Caisse updated JDO-521:
--------------------------------

Attachment: JDO-521.patch

Contains the first test class for managed relationships. There are three failures:

RUN RelationshipSetFromNullTest.testSet1to1FromMappedSide FAILURE
RUN RelationshipSetFromNullTest.testSet1to1FromMappedBySide FAILURE
RUN RelationshipSetFromNullTest.testSet1toManyFromMappedSide FAILURE
RUN RelationshipSetFromNullTest.testSet1toManyFromMappedbySide
RUN RelationshipSetFromNullTest.testSetManytoManyFromMappedSide
RUN RelationshipSetFromNullTest.testSetManytoMFromMappedbySide
Description: Completeness test with standard mapping, basic testdata with no relationships.
Time: 004
There were 3 failures:
1) testSet1to1FromMappedSide(org.apache.jdo.tck.mapping.RelationshipSetFromNullTest)junit.framework.AssertionFailedError:
TestSet1to1FromMappedSide: Postcondition is false; other side of relationship not set on flush

at org.apache.jdo.tck.JDO_Test.failOnError(JDO_Test.java:1103)
at org.apache.jdo.tck.mapping.RelationshipSetFromNullTest. testSet1to1FromMappedSide(RelationshipSe
tFromNullTest.java:99)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at org.apache.jdo.tck.JDO_Test.runBare(JDO_Test.java:254)
at org.apache.jdo.tck.util.BatchTestRunner.doRun(BatchTestRunner.java:108)
at org.apache.jdo.tck.util.BatchTestRunner.start(BatchTestRunner.java:148)
at org.apache.jdo.tck.util.BatchTestRunner.main(BatchTestRunner.java:123)
2) testSet1to1FromMappedBySide(org.apache.jdo.tck.mapping.RelationshipSetFromNullTest)junit.framework.AssertionFailedError:
testSet1to1FromMappedBySide: Postcondition is false; other side of relationship not set on flush

at org.apache.jdo.tck.JDO_Test.failOnError(JDO_Test.java:1103)
at org.apache.jdo.tck.mapping.RelationshipSetFromNullTest. testSet1to1FromMappedBySide(Relationship
SetFromNullTest.java:150)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at org.apache.jdo.tck.JDO_Test.runBare(JDO_Test.java:254)
at org.apache.jdo.tck.util.BatchTestRunner.doRun(BatchTestRunner.java:108)
at org.apache.jdo.tck.util.BatchTestRunner.start(BatchTestRunner.java:148)
at org.apache.jdo.tck.util.BatchTestRunner.main(BatchTestRunner.java:123)
3) testSet1toManyFromMappedSide(org.apache.jdo.tck.mapping.RelationshipSetFromNullTest)junit.framework.AssertionFailedError:
testSet1toManyFromMappedSide: Postcondition is false; other side of relationship not set on flush
testSet1toManyFromMappedSide: In new transaction, postcondition is false; other side of relationship is not set.

at org.apache.jdo.tck.JDO_Test.failOnError(JDO_Test.java:1103)
at org.apache.jdo.tck.mapping.RelationshipSetFromNullTest. testSet1toManyFromMappedSide(Relationshi
pSetFromNullTest.java:201)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at org.apache.jdo.tck.JDO_Test.runBare(JDO_Test.java:254)
at org.apache.jdo.tck.util.BatchTestRunner.doRun(BatchTestRunner.java:108)
at org.apache.jdo.tck.util.BatchTestRunner.start(BatchTestRunner.java:148)
at org.apache.jdo.tck.util.BatchTestRunner.main(BatchTestRunner.java:123)


> Create tests for relationship mapping (spec section 15.3)
> ---------------------------------------------------------
>
> Key: JDO-521
> URL: https://issues.apache.org/jira/browse/JDO-521
> Project: JDO
> Issue Type: Test
> Components: tck2
> Affects Versions: JDO 2 maintenance release 1
> Reporter: Michelle Caisse
> Assignee: Michelle Caisse
> Attachments: JDO-521.patch
>
>
> We need a set of tests to test that an implementation syncs both sides of a relationship on flush().


--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com