FWIW, I suspect that the problem is with the test case, not the switch. it sounds like the test case isn't clearing the db in it's setUp()... that's often the case when the result count is double the expected number.
-Patrick On 5/24/07, Craig L Russell <[EMAIL PROTECTED]> wrote:
Same here. Craig On May 24, 2007, at 5:28 PM, Pinaki Poddar wrote: > Yes, 'svn clean' was missing. > $ svn switch /path/to/new/location > $ mvn clean package > runs successfully > > > Pinaki Poddar > BEA Systems > 415.402.7317 > > > -----Original Message----- > From: Patrick Linskey [mailto:[EMAIL PROTECTED] > Sent: Thursday, May 24, 2007 5:48 PM > To: open-jpa-dev@incubator.apache.org > Subject: Re: Test failures > > That sounds like a non-clean database or something. What happens > with a > 'mvn clean' first? > > All tests are passing on my CI machine. > > -Patrick > > On 5/24/07, Pinaki Poddar <[EMAIL PROTECTED]> wrote: >>> Is it just me, or is integration-test broken? >> Observed the same since did a 'svn switch' >> >> >> Pinaki Poddar >> BEA Systems >> 415.402.7317 >> >> >> -----Original Message----- >> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] >> Sent: Thursday, May 24, 2007 4:07 PM >> To: open-jpa-dev@incubator.apache.org >> Subject: Test failures >> >> Is it just me, or is integration-test broken? >> >> [INFO] >> --------------------------------------------------------------------- >> - >> -- >> ---- >> [INFO] Building OpenJPA JPA JDBC >> [INFO] task-segment: [integration-test] >> [INFO] >> --------------------------------------------------------------------- >> - >> -- >> ---- >> ... >> Everything is fine until this. Something I'm doing wrong perhaps? >> >> Running org.apache.openjpa.persistence.relations.TestLRS >> 0 test INFO [main] openjpa.Runtime - Starting OpenJPA 0.0.0 >> 1 test INFO [main] openjpa.jdbc.JDBC - OpenJPA will now connect >> to the database to attempt to determine what type of database >> dictionary to use. To prevent this connection in the future, set >> your > >> openjpa.jdbc.DBDictionary configuration property to the appropriate >> value for your database (see the documentation for available values). >> 2 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class >> "org.apache.openjpa.jdbc.sql.DerbyDictionary" (Apache Derby 10.2.2.0 >> - (485682) ,Apache Derby Embedded JDBC Driver 10.2.2.0 - (485682)). >> 0 test INFO [main] openjpa.Runtime - Starting OpenJPA 0.0.0 >> 0 test INFO [main] openjpa.jdbc.JDBC - OpenJPA will now connect >> to the database to attempt to determine what type of database >> dictionary to use. To prevent this connection in the future, set >> your > >> openjpa.jdbc.DBDictionary configuration property to the appropriate >> value for your database (see the documentation for available values). >> 2 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class >> "org.apache.openjpa.jdbc.sql.DerbyDictionary" (Apache Derby 10.2.2.0 >> - (485682) ,Apache Derby Embedded JDBC Driver 10.2.2.0 - (485682)). >> 0 test INFO [main] openjpa.Runtime - Starting OpenJPA 0.0.0 >> 0 test INFO [main] openjpa.jdbc.JDBC - OpenJPA will now connect >> to the database to attempt to determine what type of database >> dictionary to use. To prevent this connection in the future, set >> your > >> openjpa.jdbc.DBDictionary configuration property to the appropriate >> value for your database (see the documentation for available values). >> 1 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class >> "org.apache.openjpa.jdbc.sql.DerbyDictionary" (Apache Derby 10.2.2.0 >> - (485682) ,Apache Derby Embedded JDBC Driver 10.2.2.0 - (485682)). >> Tests run: 3, Failures: 3, Errors: 0, Skipped: 0, Time elapsed: 0.205 >> sec <<< FAILURE! >> testEMClear(org.apache.openjpa.persistence.relations.TestLRS) Time >> elapsed: 0.095 sec <<< FAILURE! >> junit.framework.AssertionFailedError: expected:<3> but was:<6> >> at junit.framework.Assert.fail(Assert.java:47) >> at junit.framework.Assert.failNotEquals(Assert.java:282) >> at junit.framework.Assert.assertEquals(Assert.java:64) >> at junit.framework.Assert.assertEquals(Assert.java:201) >> at junit.framework.Assert.assertEquals(Assert.java:207) >> at >> org.apache.openjpa.persistence.relations.TestLRS.assertLRS >> (TestLRS.java:92) >> at >> org.apache.openjpa.persistence.relations.TestLRS.testEMClear >> (TestLRS.java:62) >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native > Method) >> at sun.reflect.NativeMethodAccessorImpl.invoke >> (NativeMethodAccessorImpl.java:39) >> at sun.reflect.DelegatingMethodAccessorImpl.invoke >> (DelegatingMethodAccessorImpl.java:25) >> at java.lang.reflect.Method.invoke(Method.java:585) >> at junit.framework.TestCase.runTest(TestCase.java:154) >> at junit.framework.TestCase.runBare(TestCase.java:127) >> at junit.framework.TestResult$1.protect(TestResult.java:106) >> at > junit.framework.TestResult.runProtected(TestResult.java:124) >> at junit.framework.TestResult.run(TestResult.java:109) >> at junit.framework.TestCase.run(TestCase.java:118) >> at junit.framework.TestSuite.runTest(TestSuite.java:208) >> at junit.framework.TestSuite.run(TestSuite.java:203) >> at sun.reflect.GeneratedMethodAccessor103.invoke(Unknown >> Source) >> at sun.reflect.DelegatingMethodAccessorImpl.invoke >> (DelegatingMethodAccessorImpl.java:25) >> at java.lang.reflect.Method.invoke(Method.java:585) >> at org.apache.maven.surefire.junit.JUnitTestSet.execute >> (JUnitTestSet.java:210) >> at >> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTes >> t >> Se >> t(AbstractDirectoryTestSuite.java:135) >> at >> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute >> (AbstractDirectoryTestSuite.java:122) >> at org.apache.maven.surefire.Surefire.run(Surefire.java:129) >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native > Method) >> at sun.reflect.NativeMethodAccessorImpl.invoke >> (NativeMethodAccessorImpl.java:39) >> at sun.reflect.DelegatingMethodAccessorImpl.invoke >> (DelegatingMethodAccessorImpl.java:25) >> at java.lang.reflect.Method.invoke(Method.java:585) >> at >> org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess >> (SurefireBooter.java:225) >> at org.apache.maven.surefire.booter.SurefireBooter.main >> (SurefireBooter.java:747) >> >> testEMClose(org.apache.openjpa.persistence.relations.TestLRS) Time >> elapsed: 0.053 sec <<< FAILURE! >> junit.framework.AssertionFailedError: expected:<3> but was:<6> >> at junit.framework.Assert.fail(Assert.java:47) >> at junit.framework.Assert.failNotEquals(Assert.java:282) >> at junit.framework.Assert.assertEquals(Assert.java:64) >> at junit.framework.Assert.assertEquals(Assert.java:201) >> at junit.framework.Assert.assertEquals(Assert.java:207) >> at >> org.apache.openjpa.persistence.relations.TestLRS.assertLRS >> (TestLRS.java:92) >> at >> org.apache.openjpa.persistence.relations.TestLRS.testEMClose >> (TestLRS.java:72) >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native > Method) >> at sun.reflect.NativeMethodAccessorImpl.invoke >> (NativeMethodAccessorImpl.java:39) >> at sun.reflect.DelegatingMethodAccessorImpl.invoke >> (DelegatingMethodAccessorImpl.java:25) >> at java.lang.reflect.Method.invoke(Method.java:585) >> at junit.framework.TestCase.runTest(TestCase.java:154) >> at junit.framework.TestCase.runBare(TestCase.java:127) >> at junit.framework.TestResult$1.protect(TestResult.java:106) >> at > junit.framework.TestResult.runProtected(TestResult.java:124) >> at junit.framework.TestResult.run(TestResult.java:109) >> at junit.framework.TestCase.run(TestCase.java:118) >> at junit.framework.TestSuite.runTest(TestSuite.java:208) >> at junit.framework.TestSuite.run(TestSuite.java:203) >> at sun.reflect.GeneratedMethodAccessor103.invoke(Unknown >> Source) >> at sun.reflect.DelegatingMethodAccessorImpl.invoke >> (DelegatingMethodAccessorImpl.java:25) >> at java.lang.reflect.Method.invoke(Method.java:585) >> at org.apache.maven.surefire.junit.JUnitTestSet.execute >> (JUnitTestSet.java:210) >> at >> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTes >> t >> Se >> t(AbstractDirectoryTestSuite.java:135) >> at >> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute >> (AbstractDirectoryTestSuite.java:122) >> at org.apache.maven.surefire.Surefire.run(Surefire.java:129) >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native > Method) >> at sun.reflect.NativeMethodAccessorImpl.invoke >> (NativeMethodAccessorImpl.java:39) >> at sun.reflect.DelegatingMethodAccessorImpl.invoke >> (DelegatingMethodAccessorImpl.java:25) >> at java.lang.reflect.Method.invoke(Method.java:585) >> at >> org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess >> (SurefireBooter.java:225) >> at org.apache.maven.surefire.booter.SurefireBooter.main >> (SurefireBooter.java:747) >> >> testDetachCopy(org.apache.openjpa.persistence.relations.TestLRS) >> Time elapsed: 0.05 sec <<< FAILURE! >> junit.framework.AssertionFailedError: expected:<3> but was:<6> >> at junit.framework.Assert.fail(Assert.java:47) >> at junit.framework.Assert.failNotEquals(Assert.java:282) >> at junit.framework.Assert.assertEquals(Assert.java:64) >> at junit.framework.Assert.assertEquals(Assert.java:201) >> at junit.framework.Assert.assertEquals(Assert.java:207) >> at >> org.apache.openjpa.persistence.relations.TestLRS.assertLRS >> (TestLRS.java:92) >> at >> org.apache.openjpa.persistence.relations.TestLRS.testDetachCopy >> (TestLRS.java:81) >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native > Method) >> at sun.reflect.NativeMethodAccessorImpl.invoke >> (NativeMethodAccessorImpl.java:39) >> at sun.reflect.DelegatingMethodAccessorImpl.invoke >> (DelegatingMethodAccessorImpl.java:25) >> at java.lang.reflect.Method.invoke(Method.java:585) >> at junit.framework.TestCase.runTest(TestCase.java:154) >> at junit.framework.TestCase.runBare(TestCase.java:127) >> at junit.framework.TestResult$1.protect(TestResult.java:106) >> at > junit.framework.TestResult.runProtected(TestResult.java:124) >> at junit.framework.TestResult.run(TestResult.java:109) >> at junit.framework.TestCase.run(TestCase.java:118) >> at junit.framework.TestSuite.runTest(TestSuite.java:208) >> at junit.framework.TestSuite.run(TestSuite.java:203) >> at sun.reflect.GeneratedMethodAccessor103.invoke(Unknown >> Source) >> at sun.reflect.DelegatingMethodAccessorImpl.invoke >> (DelegatingMethodAccessorImpl.java:25) >> at java.lang.reflect.Method.invoke(Method.java:585) >> at org.apache.maven.surefire.junit.JUnitTestSet.execute >> (JUnitTestSet.java:210) >> at >> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTes >> t >> Se >> t(AbstractDirectoryTestSuite.java:135) >> at >> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute >> (AbstractDirectoryTestSuite.java:122) >> at org.apache.maven.surefire.Surefire.run(Surefire.java:129) >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native > Method) >> at sun.reflect.NativeMethodAccessorImpl.invoke >> (NativeMethodAccessorImpl.java:39) >> at sun.reflect.DelegatingMethodAccessorImpl.invoke >> (DelegatingMethodAccessorImpl.java:25) >> at java.lang.reflect.Method.invoke(Method.java:585) >> at >> org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess >> (SurefireBooter.java:225) >> at org.apache.maven.surefire.booter.SurefireBooter.main >> (SurefireBooter.java:747) >> >> Craig Russell >> Architect, Sun Java Enterprise System http://java.sun.com/products/ >> jdo >> 408 276-5638 mailto:[EMAIL PROTECTED] P.S. A good JDO? O, Gasp! >> >> >> Notice: This email message, together with any attachments, may > contain information of BEA Systems, Inc., its subsidiaries and > affiliated entities, that may be confidential, proprietary, > copyrighted and/or legally privileged, and is intended solely for the > use of the individual or entity named in this message. If you are not > the intended recipient, and have received this message in error, > please > immediately return this by email and then delete it. >> > > > -- > Patrick Linskey > 202 669 5907 > > Notice: This email message, together with any attachments, may > contain information of BEA Systems, Inc., its subsidiaries > and affiliated entities, that may be confidential, proprietary, > copyrighted and/or legally privileged, and is intended solely for > the use of the individual or entity named in this message. If you > are not the intended recipient, and have received this message in > error, please immediately return this by email and then delete it. Craig Russell Architect, Sun Java Enterprise System http://java.sun.com/products/jdo 408 276-5638 mailto:[EMAIL PROTECTED] P.S. A good JDO? O, Gasp!
-- Patrick Linskey 202 669 5907