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=1.3.1.Final-redhat-1) 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#test-execution-order 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.
This is minor and very lowest priority.
PR sent to upstream https://github.com/gatein/gatein-mop/pull/2
https://github.com/gatein/gatein-mop/pull/2 was merged in upstream and will reach JBoss Portal 6.2.0.ER3
Verified in JP6.2.ER03, MOP version (1.3.3.Final-redhat-1) https://jenkins.mw.lab.eng.bos.redhat.com/hudson/view/EPP/view/EPP/view/6.2/view/Unit%20testing/job/epp6_unit_tests_module_mop/35/
Seems internal junit testing bug. No CCFR Required.
This product has been discontinued or is no longer tracked in Red Hat Bugzilla.