Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-16121

IncludeMacroTests fail to execute when Clover is enabled

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • 10.11
    • Unknown

    Description

      Example of error:

      [ERROR] testIncludeMacroWhenInvalidSectionSpecified  Time elapsed: 1.122 s  <<< FAILURE!
      org.junit.ComparisonFailure: expected:<[Cannot find section [unknown] in document [wiki:space.document]]> but was:<[Failed to lookup default document displayer.]>
              at org.junit.Assert.assertEquals(Assert.java:115)
              at org.junit.Assert.assertEquals(Assert.java:144)
              at org.xwiki.rendering.internal.macro.IncludeMacroTest.__CLR4_3_1l0gk6x3awe(IncludeMacroTest.java:508)
              at org.xwiki.rendering.internal.macro.IncludeMacroTest.testIncludeMacroWhenInvalidSectionSpecified(IncludeMacroTest.java:471)
              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 org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
              at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
              at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
              at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
              at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
              at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
              at org.jmock.integration.junit4.JUnitRuleMockery$1.evaluate(JUnitRuleMockery.java:49)
              at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
              at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
              at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
              at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
              at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
              at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
              at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
              at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
              at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
              at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
              at org.junit.runner.JUnitCore.run(JUnitCore.java:115)
              at org.junit.vintage.engine.execution.RunnerExecutor.execute(RunnerExecutor.java:39)
              at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184)
              at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
              at java.util.Iterator.forEachRemaining(Iterator.java:116)
              at java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801)
              at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)
              at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
              at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151)
              at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174)
              at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
              at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:418)
              at org.junit.vintage.engine.VintageTestEngine.executeAllChildren(VintageTestEngine.java:79)
              at org.junit.vintage.engine.VintageTestEngine.execute(VintageTestEngine.java:70)
              at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:220)
              at org.junit.platform.launcher.core.DefaultLauncher.lambda$execute$6(DefaultLauncher.java:188)
              at org.junit.platform.launcher.core.DefaultLauncher.withInterceptedStreams(DefaultLauncher.java:202)
              at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:181)
              at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:128)
              at org.apache.maven.surefire.junitplatform.JUnitPlatformProvider.invokeAllTests(JUnitPlatformProvider.java:142)
              at org.apache.maven.surefire.junitplatform.JUnitPlatformProvider.invoke(JUnitPlatformProvider.java:117)
              at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:383)
              at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:344)
              at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:125)
              at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:417)
      
      
      
      
              [ERROR] testIncludeMacroWithNewContextShowsPassingOnRestrictedFlag  Time elapsed: 0.046 s  <<< ERROR!
              org.xwiki.rendering.macro.MacroExecutionException: Failed to lookup default document displayer.
                      at org.xwiki.rendering.internal.macro.include.IncludeMacro.execute(IncludeMacro.java:209)
                      at org.xwiki.rendering.internal.macro.IncludeMacroTest.runIncludeMacro(IncludeMacroTest.java:607)
                      at org.xwiki.rendering.internal.macro.IncludeMacroTest.__CLR4_3_1ydl7593asf(IncludeMacroTest.java:180)
                      at org.xwiki.rendering.internal.macro.IncludeMacroTest.testIncludeMacroWithNewContextShowsPassingOnRestrictedFlag(IncludeMacroTest.java:163)
      ...
      
              Caused by: java.lang.RuntimeException: Failed to lookup default document displayer.
                      at org.xwiki.display.internal.ConfiguredDocumentDisplayer.getDocumentDisplayer(ConfiguredDocumentDisplayer.java:96)
                      at org.xwiki.display.internal.ConfiguredDocumentDisplayer.display(ConfiguredDocumentDisplayer.java:68)
                      at org.xwiki.display.internal.ConfiguredDocumentDisplayer.display(ConfiguredDocumentDisplayer.java:42)
                      at org.xwiki.rendering.internal.macro.include.IncludeMacro.execute(IncludeMacro.java:207)
                      ... 49 more
              Caused by: org.xwiki.component.manager.ComponentLookupException: Failed to lookup component [org.xwiki.display.internal.DefaultDocumentDisplayer] identified by type [interface org.xwiki.display.internal.DocumentDisplayer] and hint [null]
                      at org.xwiki.component.embed.EmbeddableComponentManager.getInstance(EmbeddableComponentManager.java:204)
                      at org.xwiki.component.embed.EmbeddableComponentManager.getInstance(EmbeddableComponentManager.java:189)
                      at org.xwiki.display.internal.ConfiguredDocumentDisplayer.getDocumentDisplayer(ConfiguredDocumentDisplayer.java:94)
                      ... 52 more
              Caused by: org.xwiki.component.manager.ComponentLookupException: Failed to lookup component [org.xwiki.display.internal.DocumentTitleDisplayer] identified by type [interface org.xwiki.display.internal.DocumentDisplayer] and hint [title]
                      at org.xwiki.component.embed.EmbeddableComponentManager.getInstance(EmbeddableComponentManager.java:204)
                      at org.xwiki.component.embed.EmbeddableComponentManager.getDependencyInstance(EmbeddableComponentManager.java:406)
                      at org.xwiki.component.embed.EmbeddableComponentManager.createInstance(EmbeddableComponentManager.java:355)
                      at org.xwiki.component.embed.EmbeddableComponentManager.getComponentInstance(EmbeddableComponentManager.java:451)
                      at org.xwiki.component.embed.EmbeddableComponentManager.getInstance(EmbeddableComponentManager.java:201)
                      ... 54 more
              Caused by: org.xwiki.component.manager.ComponentLookupException: Failed to lookup component [org.xwiki.test.rendering.velocity.StubVelocityManager] identified by type [interface org.xwiki.velocity.VelocityManager] and hint [default]
                      at org.xwiki.component.embed.EmbeddableComponentManager.getInstance(EmbeddableComponentManager.java:204)
                      at org.xwiki.component.embed.EmbeddableComponentManager.getDependencyInstance(EmbeddableComponentManager.java:406)
                      at org.xwiki.component.embed.EmbeddableComponentManager.createInstance(EmbeddableComponentManager.java:355)
                      at org.xwiki.component.embed.EmbeddableComponentManager.getComponentInstance(EmbeddableComponentManager.java:451)
                      at org.xwiki.component.embed.EmbeddableComponentManager.getInstance(EmbeddableComponentManager.java:201)
                      ... 58 more
              Caused by: java.lang.NoClassDefFoundError: org/xwiki/test/rendering/velocity/StubVelocityManager$__CLR4_3_11qzr1qzrjrmt5dpk
                      at org.xwiki.test.rendering.velocity.StubVelocityManager.initialize(StubVelocityManager.java:73)
                      at org.xwiki.component.embed.InitializableLifecycleHandler.handle(InitializableLifecycleHandler.java:39)
                      at org.xwiki.component.embed.EmbeddableComponentManager.createInstance(EmbeddableComponentManager.java:365)
                      at org.xwiki.component.embed.EmbeddableComponentManager.getComponentInstance(EmbeddableComponentManager.java:451)
                      at org.xwiki.component.embed.EmbeddableComponentManager.getInstance(EmbeddableComponentManager.java:201)
                      ... 62 more
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            vmassol Vincent Massol
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: