Details

    • Type: Task
    • Status: Closed
    • Priority: Minor
    • Resolution: Completed
    • Affects Version/s: None
    • Fix Version/s: Master
    • Component/s: Headless CMS
    • Labels:
      None

      Description

      Depending on order of test execution, test will fail because it finds users from previous tests.

      Disabled in LRQA-48570

      Test needs to be less fragile before we enable it.

           [exec] com.liferay.headless.admin.user.resource.v1_0.test.UserAccountResourceTest > testGetUserAccountsPage FAILED
           [exec]     java.lang.AssertionError: expected:<3> but was:<27>
           [exec]         at org.junit.Assert.fail(Assert.java:88)
           [exec]         at org.junit.Assert.failNotEquals(Assert.java:834)
           [exec]         at org.junit.Assert.assertEquals(Assert.java:645)
           [exec]         at org.junit.Assert.assertEquals(Assert.java:631)
           [exec]         at com.liferay.headless.admin.user.resource.v1_0.test.UserAccountResourceTest.testGetUserAccountsPage(UserAccountResourceTest.java:115)
           [exec]         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           [exec]         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
           [exec]         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
           [exec]         at java.lang.reflect.Method.invoke(Method.java:498)
           [exec]         at com.liferay.arquillian.extension.junit.bridge.server.TestExecutorRunnable$2.evaluate(TestExecutorRunnable.java:181)
           [exec]         at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
           [exec]         at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
           [exec]         at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:79)
           [exec]         at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:79)
           [exec]         at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:79)
           [exec]         at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:79)
           [exec]         at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:79)
           [exec]         at com.liferay.portal.kernel.test.rule.TimeoutTestRule$1.evaluate(TimeoutTestRule.java:89)
           [exec]         at org.junit.rules.RunRules.evaluate(RunRules.java:20)
           [exec]         at com.liferay.arquillian.extension.junit.bridge.server.TestExecutorRunnable$1.evaluate(TestExecutorRunnable.java:118)
           [exec]         at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
           [exec]         at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:57)
           [exec]         at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:57)
           [exec]         at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:57)
           [exec]         at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:57)
           [exec]         at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:57)
           [exec]         at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:57)
           [exec]         at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:57)
           [exec]         at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:57)
           [exec]         at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:57)
           [exec]         at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:57)
           [exec]         at org.junit.rules.RunRules.evaluate(RunRules.java:20)
           [exec]         at com.liferay.arquillian.extension.junit.bridge.server.TestExecutorRunnable._execute(TestExecutorRunnable.java:156)
           [exec]         at com.liferay.arquillian.extension.junit.bridge.server.TestExecutorRunnable.run(TestExecutorRunnable.java:77)
           [exec]         at java.lang.Thread.run(Thread.java:745)
      

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: