]
RH Bugzilla Integration commented on GTNMOP-54:
-----------------------------------------------
vramik(a)redhat.com changed the Status of [bug
Tests in WorkspaceTestCase are order dependent
----------------------------------------------
Key: GTNMOP-54
URL:
https://issues.jboss.org/browse/GTNMOP-54
Project: GateIn Model Object for Portal
Issue Type: Bug
Reporter: Peter Palaga
Assignee: Peter Palaga
Cloned from
https://bugzilla.redhat.com/show_bug.cgi?id=1091114
Description of problem:
Community MOP Core project (
https://github.com/gatein/gatein-mop/tree/1.3.1.Final/core)
has test dependency junit-4.10.jar (managed from gatein-dep-1.4.0.Final).
Prod MOP Core
(
http://git.app.eng.bos.redhat.com/git/gatein/gatein-mop.git/tree/core?id=...)
has test dependency junit-4.11-redhat-1.jar.
There are junit 4.11 release notes:
https://github.com/junit-team/junit/blob/master/doc/ReleaseNotes4.11.md#t...
Test execution order has changed between junit 4.10 and 4.11. I get test failures in
org.gatein.mop.core.api.workspace.WorkspaceTestCase. It depends on order of execution of
org.gatein.mop.core.api.workspace.WorkspaceTestCase.testRemoveReferencedTemplate. When the
test is runned, all following tests, where a site "portal" is added
(.addSite(ObjectType.PORTAL_SITE, "portal")), fails. In junit 4.10 the test is
runned in the end of the test file so the tests passed but in 4.11 5 tests fails with
ERROR org.chromattic.core.DomainSession - Attempt to insert context
EntityContext[state=ObjectStatus[status=TRANSIENT],mapper=EntityMapper[class=class
org.gatein.mop.core.api.workspace.PortalSite,typeName=mop:portalsite]] as an existing
child with name mop:portal child of node /mop:workspace/mop:portalsites
Version-Release number of selected component (if applicable):
community MOP: 1.3.1.Final with junit 4.10
prod MOP: 1.3.1.Final-redhat-1 with junit 4.11-redhat-1
Additional info:
When I declare junit version to 4.11 in community project I get the errors.
When I declare junit version to 4.10-redhat-2 in prod project all tests passed.