Re: [eclipselink-dev] rewriting updateall queries clean-up code in tests
That was it, thanks!
I had copied the Symfo alternative queries from jpa.fieldaccess and
apparently Eclipse automatically added the import statement to the old
classes. I hadn't noticed it as it all compiled fine.
I took out the import and now they pass.
On 13/01/2010 05:36, Tom Ware wrote:
I am surprised the Address class used in
JoinedAttributeAdvancedJunitTest is from the package
org.eclipse.persistence.testing.models.jpa.fieldaccess.advanced. I would
expect to be using the one from:
org.eclipse.persistence.testing.models.jpa.advanced. Do you have a
reference to the class from the wrong package?
Dies Koper wrote:
On 12/01/2010 16:51, Dies Koper wrote:
I am a hesitant to change this test for all platforms, but you could
an isSymfoware() check and then do some alternate clean up. Which
queries fail? (I assume just the ones that deal with Employee)
Yes, you are correct, just the UpdateAllQuery and DeleteAllQuery with
With the alternate clean up all tests in these suites now pass. Thanks!
They passed when I ran just their suites, but as part of the JPA LRG
the testSetup method fails:
Exception Description: Missing descriptor for [class
Query: ReadAllQuery(referenceClass=Address )
The line is:
objectVectors[i] = getDbSession().readAllObjects(classes[i]);
What could be wrong?