[gatein-issues] [JBoss JIRA] (GTNPORTAL-3350) Test failure: TestUserPortal#testNavigationOrder

Tuyen Nguyen The (JIRA) issues at jboss.org
Thu Dec 12 22:10:32 EST 2013


Tuyen Nguyen The created GTNPORTAL-3350:
-------------------------------------------

             Summary: Test failure: TestUserPortal#testNavigationOrder 
                 Key: GTNPORTAL-3350
                 URL: https://issues.jboss.org/browse/GTNPORTAL-3350
             Project: GateIn Portal
          Issue Type: Bug
      Security Level: Public (Everyone can see)
    Affects Versions: 3.7.0.Final
            Reporter: Tuyen Nguyen The


I meet a test failure: 
{code}
Unit test testNavigationOrder did not complete:
junit.framework.AssertionFailedError: expected:<SiteKey[type=GROUP,name=/organization/management/executive-board]> but was:<SiteKey[type=GROUP,name=/platform/users]>
	at junit.framework.Assert.fail(Assert.java:50)
	at junit.framework.Assert.failNotEquals(Assert.java:287)
	at junit.framework.Assert.assertEquals(Assert.java:67)
	at junit.framework.Assert.assertEquals(Assert.java:74)
	at org.exoplatform.portal.mop.user.TestUserPortal$6.doExecute(TestUserPortal.java:388)
	at org.exoplatform.portal.mop.user.TestUserPortal$UnitTest.execute(TestUserPortal.java:924)
	at org.exoplatform.portal.mop.user.TestUserPortal.testNavigationOrder(TestUserPortal.java:367)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:601)
	at junit.framework.TestCase.runTest(TestCase.java:168)
	at junit.framework.TestCase.runBare(TestCase.java:134)
	at org.exoplatform.component.test.AbstractGateInTest.runBare(AbstractGateInTest.java:81)
	at junit.framework.TestResult$1.protect(TestResult.java:110)
	at junit.framework.TestResult.runProtected(TestResult.java:128)
	at junit.framework.TestResult.run(TestResult.java:113)
	at junit.framework.TestCase.run(TestCase.java:124)
	at junit.framework.TestSuite.runTest(TestSuite.java:243)
	at junit.framework.TestSuite.run(TestSuite.java:238)
	at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83)
	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:226)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:133)
	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:114)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:601)
	at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:188)
	at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:166)
	at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:86)
	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:101)
	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:74)
Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 16.16 sec <<< FAILURE!
{code}

When i run all test or run single this test with command mvn clean test -Dtest=TestUserPortal#testNavigationOrder, a always meet this failure. But this failure is not happened on other.
My environment is:
{code}
OS: Ubuntu x64 13.04
JDK: 1.7.0_21 - 64bit
maven: 1.7.0_21
{code}

Maybe this failure is caused by commit: https://github.com/gatein/gatein-portal/commit/15f5899471161ac5ced8a26e60807bfe491d4696#diff-4

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the gatein-issues mailing list