Details

      Description

      When run in Java8 two test methods fail in SiteServiceImpl :

      Tests run: 38, Failures: 1, Errors: 1, Skipped: 0, Time elapsed: 68.872 sec <<< FAILURE! - in org.alfresco.repo.site.SiteServiceImpl
      Test
      testJSAPI(org.alfresco.repo.site.SiteServiceImplTest)  Time elapsed: 1.531 sec  <<< ERROR!
      org.alfresco.scripts.ScriptException: 11110049 Failed to execute script 'org/alfresco/repo/site/script/test_siteService.js': 11110048 Expected value '2.0' was '0.0'
              at org.alfresco.repo.jscript.ScriptTestUtils.assertEquals(ScriptTestUtils.java:47)
              at org.alfresco.repo.jscript.ScriptTestUtils.assertEquals(ScriptTestUtils.java:31)
              at sun.reflect.GeneratedMethodAccessor534.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:483)
              at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126)
      ...
              at org.alfresco.repo.site.SiteServiceImplTest.testJSAPI(SiteServiceImplTest.java:2395)
      
      testListSites(org.alfresco.repo.site.SiteServiceImplTest)  Time elapsed: 0.901 sec  <<< FAILURE!
      junit.framework.AssertionFailedError: Matched wrong number of sites named 'One' expected:<1> but was:<0>
              at junit.framework.Assert.fail(Assert.java:57)
              at junit.framework.Assert.failNotEquals(Assert.java:329)
              at junit.framework.Assert.assertEquals(Assert.java:78)
              at junit.framework.Assert.assertEquals(Assert.java:234)
              at junit.framework.TestCase.assertEquals(TestCase.java:401)
              at org.alfresco.repo.site.SiteServiceImplTest.testListSites(SiteServiceImplTest.java:471)
      

      See build https://bamboo.alfresco.com/bamboo/browse/ALF-ENT0-383 for details.

      How to reproduce:
      mvn clean -Pintegration-tests -Ddb.skip=false && mvn install -Dtest=SiteServiceImplTest

        Attachments

          Issue Links

            Structure

              Activity

                People

                • Assignee:
                  closedissues Closed Issues
                  Reporter:
                  slanglois Samuel Langlois [X] (Inactive)
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Time Tracking

                    Estimated:
                    Original Estimate - Not Specified
                    Not Specified
                    Remaining:
                    Remaining Estimate - 0 minutes
                    0m
                    Logged:
                    Time Spent - 7 hours
                    7h

                      Structure Helper Panel