Details

      Description

      RenderFragmentEntryStrutsActionTest is not cleaning test data and causes SegmentUserResourceTest failed. SegmentUserResourceTest will not only fail if it is run after RenderFragmentEntryStrutsActionTest.

       

      Steps to reproduce:

      1) Boot up portal from empty database

      2) Run RenderFragmentEntryStrutsActionTest

      3) Run SegmentUserResourceTest

      4) Will see test failed:

      com.liferay.headless.admin.user.resource.v1_0.test.SegmentUserResourceTest > testGetSegmentUserAccountsPage FAILEDcom.liferay.headless.admin.user.resource.v1_0.test.SegmentUserResourceTest > testGetSegmentUserAccountsPage FAILED    java.lang.IllegalArgumentException: Expected starts with '{', but found 'N' in 'No User exists with the primary key 38273'     at com.liferay.headless.admin.user.client.json.BaseJSONParser._assertStartsWithAndEndsWith(BaseJSONParser.java:254)     at com.liferay.headless.admin.user.client.json.BaseJSONParser.parseToDTO(BaseJSONParser.java:45)     at com.liferay.headless.admin.user.client.pagination.Page.of(Page.java:39)     at com.liferay.headless.admin.user.client.resource.v1_0.SegmentUserResource$SegmentUserResourceImpl.getSegmentUserAccountsPage(SegmentUserResource.java:119)     at com.liferay.headless.admin.user.resource.v1_0.test.SegmentUserResourceTest.testGetSegmentUserAccountsPage(SegmentUserResourceTest.java:61)     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)     at java.lang.reflect.Method.invoke(Method.java:498)     at com.liferay.arquillian.extension.junit.bridge.server.TestExecutorRunnable$2.evaluate(TestExecutorRunnable.java:234)     at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)     at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)     at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)     at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)     at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)     at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)     at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)     at org.junit.rules.RunRules.evaluate(RunRules.java:20)     at com.liferay.arquillian.extension.junit.bridge.server.TestExecutorRunnable$1.evaluate(TestExecutorRunnable.java:143)     at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)     at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)     at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)     at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)     at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)     at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)     at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)     at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)     at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)     at org.junit.rules.RunRules.evaluate(RunRules.java:20)     at com.liferay.arquillian.extension.junit.bridge.server.TestExecutorRunnable._execute(TestExecutorRunnable.java:181)     at com.liferay.arquillian.extension.junit.bridge.server.TestExecutorRunnable.run(TestExecutorRunnable.java:95)     at java.lang.Thread.run(Thread.java:748)
      

        Attachments

          Activity

            People

            • Assignee:
              yang.cao Yang Cao
              Reporter:
              tina.tian Tina Tian
              Participants of an Issue:
              Recent user:
              Csaba Turcsan
              Engineering Assignee:
              Tina Tian
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                31 weeks ago

                Packages

                Version Package
                7.2.X
                7.3.0 CE GA1
                Master