Closed GoogleCodeExporter closed 9 years ago
Could you provide a stackTrace ?
I can't reproduce the problem using maven 3.0 and 3.0.2
Maven output using 3.0.2 :
[INFO] Reactor Summary:
[INFO]
[INFO] Firm Social Network ............................... SUCCESS [1.394s]
[INFO] entities .......................................... SUCCESS [7.558s]
[INFO] commons ........................................... SUCCESS [9.054s]
[INFO] facade ............................................ SUCCESS [11.185s]
[INFO] admin ............................................. SUCCESS [6.556s]
[INFO] FSNet public website .............................. SUCCESS [10.942s]
[INFO] mobile-services-model ............................. SUCCESS [2.132s]
[INFO] mobile-services using Jersey ...................... SUCCESS [6.078s]
[INFO] webservice ........................................ SUCCESS [9.927s]
[INFO] trayDesktop ....................................... SUCCESS [35.646s]
[INFO] mockDB ............................................ SUCCESS [4.552s]
[INFO] assembler ......................................... SUCCESS [10.156s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1:55.598s
[INFO] Finished at: Sat Jan 15 19:35:59 CET 2011
[INFO] Final Memory: 37M/90M
[INFO] ------------------------------------------------------------------------
C:\Users\Mathieu\workspaces\fsnet\fsnet>mvn -version
Apache Maven 3.0.2 (r1056850; 2011-01-09 01:58:10+0100)
Java version: 1.6.0_22, vendor: Sun Microsystems Inc.
Java home: C:\Program Files (x86)\Java\jdk1.6.0_22.x86\jre
Default locale: fr_FR, platform encoding: Cp1252
OS name: "windows 7", version: "6.1", arch: "x86", family: "windows"
C:\Users\Mathieu\workspaces\fsnet\fsnet>
Original comment by mat.boni...@gmail.com
on 15 Jan 2011 at 6:38
Here it is:
[HUDSON] Archiving
/home/daniel/.hudson/jobs/FSNET/workspace/fsnet./commons/pom.xml to
/home/daniel/.hudson/jobs/FSNET/modules/fr.univartois.ili.fsnet$commons/builds/2
011-01-15_17-44-54/archive/fr.univartois.ili.fsnet/commons/0.6.1-SNAPSHOT/pom.xm
l
[HUDSON] Archiving
/home/daniel/.hudson/jobs/FSNET/workspace/fsnet./commons/target/commons-0.6.1-SN
APSHOT.jar to
/home/daniel/.hudson/jobs/FSNET/modules/fr.univartois.ili.fsnet$commons/builds/2
011-01-15_17-44-54/archive/fr.univartois.ili.fsnet/commons/0.6.1-SNAPSHOT/common
s-0.6.1-SNAPSHOT.jar
projectStarted fr.univartois.ili.fsnet:facade:0.6.1-SNAPSHOT
mojoStarted
org.apache.maven.plugins:maven-resources-plugin:2.4.3(default-resources)
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 0 resource
mojoSucceeded
org.apache.maven.plugins:maven-resources-plugin:2.4.3(default-resources)
mojoStarted
org.apache.maven.plugins:maven-compiler-plugin:2.3.1(default-compile)
[INFO] Nothing to compile - all classes are up to date
mojoSucceeded
org.apache.maven.plugins:maven-compiler-plugin:2.3.1(default-compile)
mojoStarted
org.apache.maven.plugins:maven-resources-plugin:2.4.3(default-testResources)
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
mojoSucceeded
org.apache.maven.plugins:maven-resources-plugin:2.4.3(default-testResources)
mojoStarted
org.apache.maven.plugins:maven-compiler-plugin:2.3.1(default-testCompile)
[INFO] Nothing to compile - all classes are up to date
mojoSucceeded
org.apache.maven.plugins:maven-compiler-plugin:2.3.1(default-testCompile)
[INFO] Surefire report directory:
/home/daniel/.hudson/jobs/FSNET/workspace/fsnet./facade/target/surefire-reports
mojoStarted org.apache.maven.plugins:maven-surefire-plugin:2.7.1(default-test)
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running fr.univartois.ili.fsnet.facade.test.InterestFacadeTest
[EL Info]: 2011-01-15 17:45:11.837--ServerSession(1290170198)--EclipseLink,
version: Eclipse Persistence Services - 2.0.1.v20100213-r6600
[EL Info]: 2011-01-15
17:45:12.719--ServerSession(1290170198)--file:/home/daniel/.hudson/jobs/FSNET/wo
rkspace/fsnet./facade/target/test-classes/_TestPU login successful
15 janv. 2011 17:45:13 fr.univartois.ili.fsnet.entities.Interest onRemove
INFO: Interest.onInterestRemove(1)
15 janv. 2011 17:45:13 fr.univartois.ili.fsnet.entities.Interest onRemove
INFO: Interest.onInterestRemove(2)
15 janv. 2011 17:45:13 fr.univartois.ili.fsnet.entities.Interest onRemove
INFO: Interest.onInterestRemove(3)
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.751 sec
Running fr.univartois.ili.fsnet.facade.test.InteractionFacadeTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.056 sec
Running fr.univartois.ili.fsnet.facade.test.ProfileFacadeTest
15 janv. 2011 17:45:14 fr.univartois.ili.fsnet.facade.ProfileFacade
changePassword
GRAVE: Formular validation error
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.159 sec
Running fr.univartois.ili.fsnet.facade.test.AnnouncementFacadeTest
15 janv. 2011 17:45:14 fr.univartois.ili.fsnet.entities.Interaction
onInteractionRemove
INFO: Interaction.onInteractionRemove(5)
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.282 sec
Running fr.univartois.ili.fsnet.facade.test.ContactFacadeTest
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.049 sec
Running fr.univartois.ili.fsnet.facade.test.TopicMessageFacadeTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.151 sec
Running fr.univartois.ili.fsnet.facade.test.MeetingFacadeTest
15 janv. 2011 17:45:16 fr.univartois.ili.fsnet.entities.Interaction
onInteractionRemove
INFO: Interaction.onInteractionRemove(28)
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.152 sec
Running fr.univartois.ili.fsnet.facade.test.SocialEntityFacadeTest
Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.058 sec
Running fr.univartois.ili.fsnet.facade.test.TopicFacadeTest
15 janv. 2011 17:45:16 fr.univartois.ili.fsnet.entities.Interaction
onInteractionRemove
INFO: Interaction.onInteractionRemove(36)
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.151 sec
Running fr.univartois.ili.fsnet.facade.test.CommunityFacadeTest
15 janv. 2011 17:45:16 fr.univartois.ili.fsnet.entities.Interaction
onInteractionRemove
INFO: Interaction.onInteractionRemove(53)
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.067 sec
Running fr.univartois.ili.fsnet.facade.test.ProfileVisiteFacadeTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.108 sec
Running fr.univartois.ili.fsnet.facade.test.PrivateMessageFacadeTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.031 sec
Running fr.univartois.ili.fsnet.facade.test.HubFacadeTest
15 janv. 2011 17:45:16 fr.univartois.ili.fsnet.facade.test.HubFacadeTest
deleteHubTest1
GRAVE: deleteHuTest1
15 janv. 2011 17:45:16 fr.univartois.ili.fsnet.entities.Interaction
onInteractionRemove
INFO: Interaction.onInteractionRemove(59)
Tests run: 4, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.048 sec <<<
FAILURE!
Results :
Failed tests:
deleteHubTest1(fr.univartois.ili.fsnet.facade.test.HubFacadeTest)
Tests run: 54, Failures: 1, Errors: 0, Skipped: 0
mojoFailed org.apache.maven.plugins:maven-surefire-plugin:2.7.1(default-test)
[HUDSON] Enregistrement des résultats des tests
projectFailed fr.univartois.ili.fsnet:facade:0.6.1-SNAPSHOT
Original comment by le.ber...@free.fr
on 15 Jan 2011 at 7:06
Here is the detailed failure in that test:
-------------------------------------------------------------------------------
Test set: fr.univartois.ili.fsnet.facade.test.HubFacadeTest
-------------------------------------------------------------------------------
Tests run: 4, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.048 sec <<<
FAILURE!
deleteHubTest1(fr.univartois.ili.fsnet.facade.test.HubFacadeTest) Time
elapsed: 0.017 sec <<< FAILURE!
java.lang.AssertionError: expected:<0> but was:<1>
at org.junit.Assert.fail(Assert.java:91)
at org.junit.Assert.failNotEquals(Assert.java:645)
at org.junit.Assert.assertEquals(Assert.java:126)
at org.junit.Assert.assertEquals(Assert.java:470)
at org.junit.Assert.assertEquals(Assert.java:454)
at fr.univartois.ili.fsnet.facade.test.HubFacadeTest.deleteHubTest1(HubFacadeTest.java:76)
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:597)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
at org.junit.runners.BlockJUnit4ClassRunner.runNotIgnored(BlockJUnit4ClassRunner.java:79)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:71)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:49)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:35)
at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:146)
at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:97)
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:597)
at org.apache.maven.surefire.booter.ProviderFactory$ClassLoaderProxy.invoke(ProviderFactory.java:103)
at $Proxy0.invoke(Unknown Source)
at org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:145)
at org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcess(SurefireStarter.java:87)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:69)
Original comment by le.ber...@free.fr
on 15 Jan 2011 at 8:23
Do you build fsnet with the latest revision on trunk without any modification ?
Could you provide the hudson configuration used to run maven ?
Can you reproduce this problem using maven in command line (without hudson) ?
Original comment by mat.boni...@gmail.com
on 16 Jan 2011 at 12:25
I built fsnet using HEAD on trunk.
I do have exactly the same problem when running mvn clean install on my
computer.
I do not have anything special in hudson to run maven.
Original comment by le.ber...@free.fr
on 16 Jan 2011 at 2:54
The problem probably occurs because of previous data existing on that machine.
I could build without problem the packages on several other computers (our
server and student's ones).
Original comment by daniel.l...@gmail.com
on 18 Jan 2011 at 3:00
Really strange, because actually the database for maven test phase is created
in memory.
As you can see here :
http://code.google.com/p/fsnet/source/browse/trunk/facade/src/test/resources/MET
A-INF/persistence.xml
Normally, the database is created and droped between each junit test.
Original comment by mat.boni...@gmail.com
on 18 Jan 2011 at 8:47
Yes, I know, I do not understand what's going on. My system is compiled for a
64 bits arch, so I am running a 64 bits JVM. That might be a reason for such
problem.
I noticed those messages on the logs:
Running fr.univartois.ili.fsnet.entities.test.InterestTest
[EL Info]: 2011-01-18 17:56:36.945--ServerSession(1253122721)--EclipseLink,
version: Eclipse Persistence Services - 2.0.1.v20100213-r6600
[EL Info]: 2011-01-18
17:56:38.188--ServerSession(1253122721)--file:/tmp/FSNET/fsnet-read-only/entitie
s/target/test-classes/_TestPU login successful
[EL Warning]: 2011-01-18 17:56:39.426--UnitOfWork(2090567670)--Exception
[EclipseLink-4002] (Eclipse Persistence Services - 2.0.1.v20100213-r6600):
org.eclipse.persistence.exceptions.DatabaseException
Internal Exception: java.sql.SQLIntegrityConstraintViolationException: The
statement was aborted because it would have caused a duplicate key value in a
unique or primary key constraint or unique index identified by
'SQL110118175638530' defined on 'INTEREST'.
Error Code: 20000
Call: INSERT INTO INTEREST (NAME, PARENTINTEREST_ID) VALUES (?, ?)
bind => [java, null]
Query: InsertObjectQuery(java)
....
Running fr.univartois.ili.fsnet.entities.test.SocialEntityTest
[EL Warning]: 2011-01-18 17:56:39.788--UnitOfWork(255800459)--Exception
[EclipseLink-4002] (Eclipse Persistence Services - 2.0.1.v20100213-r6600):
org.eclipse.persistence.exceptions.DatabaseException
Internal Exception: java.sql.SQLIntegrityConstraintViolationException: The
statement was aborted because it would have caused a duplicate key value in a
unique or primary key constraint or unique index identified by
'SQL110118175638470' defined on 'SOCIALENTITY'.
Error Code: 20000
Call: INSERT INTO SOCIALENTITY (SEX, PHONE, PROFESSION, LASTCONNECTION,
PASSWORD, NAME, BIRTHDATE, FIRSTNAME, ISENABLED, INSCRITPIONDATE, EMAIL,
ADDRESS, CITY) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
bind => [null, null, null, null, null, zozo, null, zozo, true, null, zaza@gmail.com, null, null]
Query: InsertObjectQuery(fr.univartois.ili.fsnet.entities.SocialEntity@ea3be296)
but they are not failing the tests.
Original comment by le.ber...@free.fr
on 18 Jan 2011 at 8:54
In fact those errors are normal and expected.
line 85 :
http://code.google.com/p/fsnet/source/browse/trunk/entities/src/test/java/fr/uni
vartois/ili/fsnet/entities/test/SocialEntityTest.java
line 76 :
http://code.google.com/p/fsnet/source/browse/trunk/entities/src/test/java/fr/uni
vartois/ili/fsnet/entities/test/InterestTest.java
Original comment by mat.boni...@gmail.com
on 18 Jan 2011 at 9:06
ok. I did not see anything special apart from that. That's really weird.
Original comment by le.ber...@free.fr
on 18 Jan 2011 at 9:13
I tried to update eclipselink to 2.1.2, to see if it could be a bug in
EclipseLink: now I get even more problems!
Running fr.univartois.ili.fsnet.facade.test.TopicFacadeTest
[EL Info]: 2011-01-22 22:17:49.275--ServerSession(139732265)--EclipseLink,
version: Eclipse Persistence Services - 2.1.2.v20101206-r8635
[EL Info]: 2011-01-22
22:17:50.16--ServerSession(139732265)--file:/tmp/FSNET/fsnet-read-only/facade/ta
rget/test-classes/_TestPU login successful
22 janv. 2011 22:17:51 fr.univartois.ili.fsnet.entities.Interaction
onInteractionRemove
INFO: Interaction.onInteractionRemove(13)
Tests run: 5, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 3.084 sec <<<
FAILURE!
Running fr.univartois.ili.fsnet.facade.test.ProfileFacadeTest
22 janv. 2011 22:17:51 fr.univartois.ili.fsnet.facade.ProfileFacade
changePassword
GRAVE: Formular validation error
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.155 sec
Running fr.univartois.ili.fsnet.facade.test.InteractionFacadeTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.029 sec
Running fr.univartois.ili.fsnet.facade.test.TopicMessageFacadeTest
Tests run: 4, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.128 sec <<<
FAILURE!
Running fr.univartois.ili.fsnet.facade.test.InterestFacadeTest
22 janv. 2011 22:17:52 fr.univartois.ili.fsnet.entities.Interest onRemove
INFO: Interest.onInterestRemove(1)
Tests run: 5, Failures: 1, Errors: 1, Skipped: 0, Time elapsed: 0.067 sec <<<
FAILURE!
Running fr.univartois.ili.fsnet.facade.test.HubFacadeTest
22 janv. 2011 22:17:52 fr.univartois.ili.fsnet.facade.test.HubFacadeTest
deleteHubTest1
GRAVE: deleteHuTest1
22 janv. 2011 22:17:52 fr.univartois.ili.fsnet.entities.Interaction
onInteractionRemove
INFO: Interaction.onInteractionRemove(37)
Tests run: 4, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 0.069 sec <<<
FAILURE!
Running fr.univartois.ili.fsnet.facade.test.SocialEntityFacadeTest
Tests run: 8, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 0.056 sec <<<
FAILURE!
Running fr.univartois.ili.fsnet.facade.test.ContactFacadeTest
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.041 sec
Running fr.univartois.ili.fsnet.facade.test.AnnouncementFacadeTest
22 janv. 2011 22:17:52 fr.univartois.ili.fsnet.entities.Interaction
onInteractionRemove
INFO: Interaction.onInteractionRemove(39)
Tests run: 4, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.13 sec <<<
FAILURE!
Running fr.univartois.ili.fsnet.facade.test.PrivateMessageFacadeTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.037 sec
Running fr.univartois.ili.fsnet.facade.test.CommunityFacadeTest
22 janv. 2011 22:17:52 fr.univartois.ili.fsnet.entities.Interaction
onInteractionRemove
INFO: Interaction.onInteractionRemove(47)
Tests run: 4, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.081 sec <<<
FAILURE!
Running fr.univartois.ili.fsnet.facade.test.MeetingFacadeTest
22 janv. 2011 22:17:52 fr.univartois.ili.fsnet.entities.Interaction
onInteractionRemove
INFO: Interaction.onInteractionRemove(51)
Tests run: 4, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.131 sec <<<
FAILURE!
Running fr.univartois.ili.fsnet.facade.test.ProfileVisiteFacadeTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.115 sec
Failed tests:
testGetInterest(fr.univartois.ili.fsnet.facade.test.InterestFacadeTest)
createAndGetHubTest(fr.univartois.ili.fsnet.facade.test.HubFacadeTest)
deleteHubTest1(fr.univartois.ili.fsnet.facade.test.HubFacadeTest)
testCreate(fr.univartois.ili.fsnet.facade.test.SocialEntityFacadeTest)
testGetSocialEntity(fr.univartois.ili.fsnet.facade.test.SocialEntityFacadeTest)
Tests in error:
testCreate(fr.univartois.ili.fsnet.facade.test.TopicFacadeTest)
testCreate(fr.univartois.ili.fsnet.facade.test.TopicMessageFacadeTest)
testModifyInterest(fr.univartois.ili.fsnet.facade.test.InterestFacadeTest)
testCreate(fr.univartois.ili.fsnet.facade.test.AnnouncementFacadeTest)
testCreate(fr.univartois.ili.fsnet.facade.test.CommunityFacadeTest)
testCreate(fr.univartois.ili.fsnet.facade.test.MeetingFacadeTest)
There is clearly a problem here.
Original comment by daniel.l...@gmail.com
on 22 Jan 2011 at 9:15
This is due to changes in eclipselink between actual version (2.0.1) and latest
version (2.1.2)
Original comment by mat.boni...@gmail.com
on 23 Jan 2011 at 11:32
I haven't seen any information in EclipseLink release notes about
incompatibilities between EclipseLink 2.0.x and 2.1.x.
The problem might come from a wrong configuration of EclipseLink weaving:
http://www.eclipse.org/forums/index.php?t=msg&th=203118
Original comment by daniel.l...@gmail.com
on 23 Jan 2011 at 8:47
I have the same issue using static or dynamic weaving.
After spend some times into tests code, it seems that the transaction
management could be a reason of those tests fails.
The tests are really badly written, i think we should externalize transaction
management in another tier or delegate it to a container.
Original comment by mat.boni...@gmail.com
on 24 Jan 2011 at 7:21
The changes in r1549 permit you to compile, pass the tests and play with fsnet
using 2.0.1 and 2.1.2
Original comment by mat.boni...@gmail.com
on 25 Jan 2011 at 6:36
The changes r1549 indeed fixe the issue of the different behavior between
EclipseLink 2.0.1 and EclipseLink 2.1.2 but do not fix for me the original test
failure:
Running fr.univartois.ili.fsnet.facade.test.HubFacadeTest
25 janv. 2011 19:55:48 fr.univartois.ili.fsnet.facade.test.HubFacadeTest
deleteHubTest1
GRAVE: deleteHuTest1
25 janv. 2011 19:55:48 fr.univartois.ili.fsnet.entities.Interaction
onInteractionRemove
INFO: Interaction.onInteractionRemove(43)
Tests run: 4, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.067 sec <<<
FAILURE!
deleteHubTest1(fr.univartois.ili.fsnet.facade.test.HubFacadeTest) Time
elapsed: 0.03 sec <<< FAILURE!
java.lang.AssertionError: expected:<0> but was:<1>
at org.junit.Assert.fail(Assert.java:91)
at org.junit.Assert.failNotEquals(Assert.java:645)
at org.junit.Assert.assertEquals(Assert.java:126)
at org.junit.Assert.assertEquals(Assert.java:470)
at org.junit.Assert.assertEquals(Assert.java:454)
at fr.univartois.ili.fsnet.facade.test.HubFacadeTest.deleteHubTest1(HubFacadeTest.java:79)
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:597)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
at org.junit.runners.BlockJUnit4ClassRunner.runNotIgnored(BlockJUnit4ClassRunner.java:79)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:71)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:49)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:35)
at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:146)
at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:97)
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:597)
at org.apache.maven.surefire.booter.ProviderFactory$ClassLoaderProxy.invoke(ProviderFactory.java:103)
at $Proxy0.invoke(Unknown Source)
at org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:145)
at org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcess(SurefireStarter.java:87)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:69)
Original comment by le.ber...@free.fr
on 25 Jan 2011 at 6:54
Could you try with r1550 ?
Transaction management in unit tests ...
Original comment by mat.boni...@gmail.com
on 25 Jan 2011 at 7:06
Yes, it works now.
Thanks for fixing that issue.
Original comment by le.ber...@free.fr
on 25 Jan 2011 at 7:20
Original issue reported on code.google.com by
le.ber...@free.fr
on 15 Jan 2011 at 5:39