db-jdo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michelle Caisse (JIRA)" <j...@apache.org>
Subject [jira] Updated: (JDO-521) Create tests for relationship mapping (spec section 15.3)
Date Fri, 24 Aug 2007 00:12:31 GMT

     [ https://issues.apache.org/jira/browse/JDO-521?page=com.atlassian.jira.plugin.system.issuetabpanels: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(RelationshipSetFromNullTest.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(RelationshipSetFromNullTest.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(RelationshipSetFromNullTest.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.


Mime
View raw message