[gatein-issues] [JBoss JIRA] (GTNMOP-54) Tests in WorkspaceTestCase are order dependent

RH Bugzilla Integration (JIRA) issues at jboss.org
Tue May 27 11:31:57 EDT 2014


    [ https://issues.jboss.org/browse/GTNMOP-54?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12970915#comment-12970915 ] 

RH Bugzilla Integration commented on GTNMOP-54:
-----------------------------------------------

Peter Palaga <ppalaga at redhat.com> changed the Status of [bug 1091114|https://bugzilla.redhat.com/show_bug.cgi?id=1091114] from ASSIGNED to POST

> 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=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 message was sent by Atlassian JIRA
(v6.2.3#6260)


More information about the gatein-issues mailing list