| Class | Line # | Actions | |||||
|---|---|---|---|---|---|---|---|
| WikiReferenceParser | 32 | 15 | 0% | 9 | 4 | 0.8571428785.7% |
|
Class WikiReferenceParser |
Line # 32 |
15 |
0% |
9 |
4 |
0.8571428785.7% |
|---|---|---|---|---|---|---|
| getLabel(String[]) : String getLabel(String[]) : String | 4040 | 1.01 | 0.00% | 2.02 | 0.00 | 1.0 1.0100% |
| getLink(String[]) : String getLink(String[]) : String | 5151 | 1.01 | 0.00% | 1.01 | 0.00 | 1.0 1.0100% |
| getParameters(String[]) : WikiParameters getParameters(String[]) : WikiParameters | 6363 | 1.01 | 0.00% | 2.02 | 0.00 | 1.0 1.0100% |
| parse(String) : WikiReference parse(String) : WikiReference | 7272 | 9.09 | 0.00% | 3.03 | 4.04 | 0.6923077 0.692307769.2% |
| splitToChunks(String) : String[] splitToChunks(String) : String[] | 9696 | 3.03 | 0.00% | 1.01 | 0.00 | 1.0 1.0100% |
|
0.85714287
|
org.xwiki.rendering.wikimodel.util.ReferenceUtilTest.testorg.xwiki.rendering.wikimodel.util.ReferenceUtilTest.test | 1PASS | ||
|
0.8214286
|
org.xwiki.rendering.wikimodel.test.CreoleWikiParserTest.testReferencesorg.xwiki.rendering.wikimodel.test.CreoleWikiParserTest.testReferences | 1PASS | ||
|
0.78571427
|
org.xwiki.rendering.wikimodel.test.GWikiParserTest.testReferencesorg.xwiki.rendering.wikimodel.test.GWikiParserTest.testReferences | 1PASS | ||
|
0.60714287
|
org.xwiki.rendering.wikimodel.test.JspWikiParserTest.testReferencesorg.xwiki.rendering.wikimodel.test.JspWikiParserTest.testReferences | 1PASS | ||
|
0.60714287
|
org.xwiki.rendering.wikimodel.test.JspWikiParserTest.testEscapeorg.xwiki.rendering.wikimodel.test.JspWikiParserTest.testEscape | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.cts.RenderingTest.executeorg.xwiki.rendering.test.cts.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.wikimodel.test.XWiki20ParserTest.testImagesorg.xwiki.rendering.wikimodel.test.XWiki20ParserTest.testImages | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.internal.transformation.linkchecker.LinkCheckerTransformationTest.transformWhenExistingLinkStateorg.xwiki.rendering.internal.transformation.linkchecker.LinkCheckerTransformationTest.transformWhenExistingLinkState | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.wikimodel.test.XWikiReferenceParserTest.testParseReferenceWhenLabelAndParametersSpecifiedorg.xwiki.rendering.wikimodel.test.XWikiReferenceParserTest.testParseReferenceWhenLabelAndParametersSpecified | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.annotation.renderer.AnnotationXHTMLRendererTest.getAnnotatedHTMLWithoutAnnotationsorg.xwiki.annotation.renderer.AnnotationXHTMLRendererTest.getAnnotatedHTMLWithoutAnnotations | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.cts.RenderingTest.executeorg.xwiki.rendering.test.cts.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.annotation.renderer.AnnotationXHTMLRendererTest.getAnnotatedHTMLWithoutAnnotationsorg.xwiki.annotation.renderer.AnnotationXHTMLRendererTest.getAnnotatedHTMLWithoutAnnotations | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.internal.macro.DisplayMacroTest.testDisplayMacroWhenDisplayingDocumentWithRelativeReferencesorg.xwiki.rendering.internal.macro.DisplayMacroTest.testDisplayMacroWhenDisplayingDocumentWithRelativeReferences | 3FAIL | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.internal.transformation.linkchecker.LinkCheckerTransformationTest.transformWhenExistingLinkStateButAfterTimeoutHasExpiredorg.xwiki.rendering.internal.transformation.linkchecker.LinkCheckerTransformationTest.transformWhenExistingLinkStateButAfterTimeoutHasExpired | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.wikimodel.test.XWikiReferenceParserTest.testParseReferenceWhenLabelAndParametersSpecifiedWithSomeEscapingorg.xwiki.rendering.wikimodel.test.XWikiReferenceParserTest.testParseReferenceWhenLabelAndParametersSpecifiedWithSomeEscaping | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.annotation.renderer.AnnotationXHTMLRendererTest.getAnnotatedHTMLWithoutAnnotationsorg.xwiki.annotation.renderer.AnnotationXHTMLRendererTest.getAnnotatedHTMLWithoutAnnotations | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.internal.transformation.linkchecker.LinkCheckerTransformationTest.transformWithAntiFloodKickingInorg.xwiki.rendering.internal.transformation.linkchecker.LinkCheckerTransformationTest.transformWithAntiFloodKickingIn | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.internal.transformation.linkchecker.LinkCheckerTransformationTest.transformWithLinkContextDataProviderorg.xwiki.rendering.internal.transformation.linkchecker.LinkCheckerTransformationTest.transformWithLinkContextDataProvider | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
com.xpn.xwiki.doc.XWikiDocumentTest.testGetUniqueLinkedPagescom.xpn.xwiki.doc.XWikiDocumentTest.testGetUniqueLinkedPages | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.internal.transformation.linkchecker.LinkCheckerTransformationTest.transformorg.xwiki.rendering.internal.transformation.linkchecker.LinkCheckerTransformationTest.transform | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.wikimodel.test.XWiki21ParserTest.testReferencesorg.xwiki.rendering.wikimodel.test.XWiki21ParserTest.testReferences | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.wikimodel.test.XWikiReferenceParserTest.testParseReferenceWhenReferenceOnlyorg.xwiki.rendering.wikimodel.test.XWikiReferenceParserTest.testParseReferenceWhenReferenceOnly | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.annotation.renderer.AnnotationXHTMLRendererTest.getAnnotatedHTMLWithoutAnnotationsorg.xwiki.annotation.renderer.AnnotationXHTMLRendererTest.getAnnotatedHTMLWithoutAnnotations | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.wikimodel.test.XWikiReferenceParserTest.testParseReferenceWhenParametersSpecifiedorg.xwiki.rendering.wikimodel.test.XWikiReferenceParserTest.testParseReferenceWhenParametersSpecified | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.annotation.renderer.AnnotationXHTMLRendererTest.getAnnotatedHTMLorg.xwiki.annotation.renderer.AnnotationXHTMLRendererTest.getAnnotatedHTML | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.annotation.renderer.AnnotationXHTMLRendererTest.getAnnotatedHTMLWithoutAnnotationsorg.xwiki.annotation.renderer.AnnotationXHTMLRendererTest.getAnnotatedHTMLWithoutAnnotations | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.wikimodel.test.XWikiReferenceParserTest.testParseReferenceWhenLabelSpecifiedorg.xwiki.rendering.wikimodel.test.XWikiReferenceParserTest.testParseReferenceWhenLabelSpecified | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.annotation.renderer.AnnotationXHTMLRendererTest.getAnnotatedHTMLWithoutAnnotationsorg.xwiki.annotation.renderer.AnnotationXHTMLRendererTest.getAnnotatedHTMLWithoutAnnotations | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.wikimodel.test.XWiki20ParserTest.testLinkorg.xwiki.rendering.wikimodel.test.XWiki20ParserTest.testLink | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.annotation.renderer.AnnotationXHTMLRendererTest.getAnnotatedHTMLorg.xwiki.annotation.renderer.AnnotationXHTMLRendererTest.getAnnotatedHTML | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.cts.RenderingTest.executeorg.xwiki.rendering.test.cts.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.cts.RenderingTest.executeorg.xwiki.rendering.test.cts.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.annotation.renderer.AnnotationXHTMLRendererTest.getAnnotatedHTMLorg.xwiki.annotation.renderer.AnnotationXHTMLRendererTest.getAnnotatedHTML | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.wikimodel.test.XWikiReferenceParserTest.testParseReferenceWhenLabelAndParametersSpecifiedWithSomeEscapingAndInternalLinkorg.xwiki.rendering.wikimodel.test.XWikiReferenceParserTest.testParseReferenceWhenLabelAndParametersSpecifiedWithSomeEscapingAndInternalLink | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.internal.macro.IncludeMacroTest.testIncludeMacroWhenIncludingDocumentWithRelativeReferencesorg.xwiki.rendering.internal.macro.IncludeMacroTest.testIncludeMacroWhenIncludingDocumentWithRelativeReferences | 3FAIL | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.internal.macro.wikibridge.DefaultWikiMacroTest.testExecuteWhenWithDifferentMacroSyntaxorg.xwiki.rendering.internal.macro.wikibridge.DefaultWikiMacroTest.testExecuteWhenWithDifferentMacroSyntax | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.wikimodel.test.XWiki21ParserTest.testImagesorg.xwiki.rendering.wikimodel.test.XWiki21ParserTest.testImages | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.wikimodel.test.XWiki21ParserTest.testLinkorg.xwiki.rendering.wikimodel.test.XWiki21ParserTest.testLink | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.annotation.renderer.AnnotationXHTMLRendererTest.getAnnotatedHTMLorg.xwiki.annotation.renderer.AnnotationXHTMLRendererTest.getAnnotatedHTML | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.annotation.renderer.AnnotationXHTMLRendererTest.getAnnotatedHTMLorg.xwiki.annotation.renderer.AnnotationXHTMLRendererTest.getAnnotatedHTML | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.annotation.renderer.AnnotationXHTMLRendererTest.getAnnotatedHTMLorg.xwiki.annotation.renderer.AnnotationXHTMLRendererTest.getAnnotatedHTML | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.cts.RenderingTest.executeorg.xwiki.rendering.test.cts.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
com.xpn.xwiki.doc.XWikiDocumentTest.testRenamecom.xpn.xwiki.doc.XWikiDocumentTest.testRename | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.cts.RenderingTest.executeorg.xwiki.rendering.test.cts.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
com.xpn.xwiki.doc.XWikiDocumentRenderingTest.testGetRenderedTitleWithoutTitleHTMLcom.xpn.xwiki.doc.XWikiDocumentRenderingTest.testGetRenderedTitleWithoutTitleHTML | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.internal.transformation.linkchecker.LinkCheckerTransformationTest.transformWithSourceMetaDataorg.xwiki.rendering.internal.transformation.linkchecker.LinkCheckerTransformationTest.transformWithSourceMetaData | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.internal.transformation.linkchecker.LinkCheckerTransformationTest.transformAndSendEventorg.xwiki.rendering.internal.transformation.linkchecker.LinkCheckerTransformationTest.transformAndSendEvent | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.wikimodel.test.XWikiReferenceParserTest.testParseReferenceWithPipeSymbolInLinkorg.xwiki.rendering.wikimodel.test.XWikiReferenceParserTest.testParseReferenceWithPipeSymbolInLink | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.wikimodel.test.XWikiReferenceParserTest.testParseReferenceWithGreaterThanSymbolInLabelorg.xwiki.rendering.wikimodel.test.XWikiReferenceParserTest.testParseReferenceWithGreaterThanSymbolInLabel | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.wikimodel.test.XWiki20ParserTest.testReferencesorg.xwiki.rendering.wikimodel.test.XWiki20ParserTest.testReferences | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS | ||
|
0.35714287
|
org.xwiki.rendering.test.integration.RenderingTest.executeorg.xwiki.rendering.test.integration.RenderingTest.execute | 1PASS |
| 1 | /* | ||||||
| 2 | * See the NOTICE file distributed with this work for additional | ||||||
| 3 | * information regarding copyright ownership. | ||||||
| 4 | * | ||||||
| 5 | * This is free software; you can redistribute it and/or modify it | ||||||
| 6 | * under the terms of the GNU Lesser General Public License as | ||||||
| 7 | * published by the Free Software Foundation; either version 2.1 of | ||||||
| 8 | * the License, or (at your option) any later version. | ||||||
| 9 | * | ||||||
| 10 | * This software is distributed in the hope that it will be useful, | ||||||
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||||
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||||||
| 13 | * Lesser General Public License for more details. | ||||||
| 14 | * | ||||||
| 15 | * You should have received a copy of the GNU Lesser General Public | ||||||
| 16 | * License along with this software; if not, write to the Free | ||||||
| 17 | * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA | ||||||
| 18 | * 02110-1301 USA, or see the FSF site: http://www.fsf.org. | ||||||
| 19 | */ | ||||||
| 20 | package org.xwiki.rendering.wikimodel; | ||||||
| 21 | |||||||
| 22 | /** | ||||||
| 23 | * This class is used as a common parser of references. It is used to transform | ||||||
| 24 | * references found in wiki documents into corresponding structured objects - | ||||||
| 25 | * {@link WikiReference}. Methods of this class should be overloaded to parse | ||||||
| 26 | * correctly wiki-specific references. | ||||||
| 27 | * | ||||||
| 28 | * @version $Id: a5ef2bec0f1cb1eae766ffdc7459675f905050a0 $ | ||||||
| 29 | * @since 4.0M1 | ||||||
| 30 | * @see WikiReference | ||||||
| 31 | */ | ||||||
|
|||||||
| 32 | public class WikiReferenceParser implements IWikiReferenceParser | ||||||
| 33 | { | ||||||
| 34 | /** | ||||||
| 35 | * Extracts the label from the array of chunks and returns it. | ||||||
| 36 | * | ||||||
| 37 | * @param chunks the array of chunks | ||||||
| 38 | * @return a label extracted from the given array of chunks | ||||||
| 39 | */ | ||||||
|
|||||||
| 40 | 17 | protected String getLabel(String[] chunks)... |
|||||
| 41 | { | ||||||
| 42 | 17 | return chunks.length > 1 ? chunks[1].trim() : null; | |||||
| 43 | } | ||||||
| 44 | |||||||
| 45 | /** | ||||||
| 46 | * Extracts the link from the array of chunks and returns it. | ||||||
| 47 | * | ||||||
| 48 | * @param chunks the array of chunks | ||||||
| 49 | * @return a link extracted from the given array of chunks | ||||||
| 50 | */ | ||||||
|
|||||||
| 51 | 17 | protected String getLink(String[] chunks)... |
|||||
| 52 | { | ||||||
| 53 | 17 | return chunks[0].trim(); | |||||
| 54 | } | ||||||
| 55 | |||||||
| 56 | /** | ||||||
| 57 | * Extracts parameters part of the original reference and returns it as a | ||||||
| 58 | * WikiParameters. | ||||||
| 59 | * | ||||||
| 60 | * @param chunks the array of chunks | ||||||
| 61 | * @return the parameters | ||||||
| 62 | */ | ||||||
|
|||||||
| 63 | 20 | protected WikiParameters getParameters(String[] chunks)... |
|||||
| 64 | { | ||||||
| 65 | 20 | return WikiParameters.newWikiParameters(chunks.length > 2 ? chunks[2] | |||||
| 66 | .trim() : null); | ||||||
| 67 | } | ||||||
| 68 | |||||||
| 69 | /** | ||||||
| 70 | * @see IWikiReferenceParser#parse(java.lang.String) | ||||||
| 71 | */ | ||||||
|
|||||||
| 72 | 1467 | public WikiReference parse(String str)... |
|||||
| 73 | { | ||||||
| 74 | 1467 | if (str == null) { | |||||
| 75 | 0 | return null; | |||||
| 76 | } | ||||||
| 77 | |||||||
| 78 | 1467 | String[] chunks = splitToChunks(str); | |||||
| 79 | 1467 | if (chunks.length == 0) { | |||||
| 80 | 0 | return null; | |||||
| 81 | } | ||||||
| 82 | |||||||
| 83 | 1467 | String link = getLink(chunks); | |||||
| 84 | 1467 | String label = getLabel(chunks); | |||||
| 85 | 1467 | WikiParameters parameters = getParameters(chunks); | |||||
| 86 | |||||||
| 87 | 1467 | return new WikiReference(link, label, parameters); | |||||
| 88 | } | ||||||
| 89 | |||||||
| 90 | /** | ||||||
| 91 | * Returns the given string split to individual segments | ||||||
| 92 | * | ||||||
| 93 | * @param str the string to split | ||||||
| 94 | * @return the given string split to individual segments | ||||||
| 95 | */ | ||||||
|
|||||||
| 96 | 20 | protected String[] splitToChunks(String str)... |
|||||
| 97 | { | ||||||
| 98 | 20 | String delimiter = "[|>]"; | |||||
| 99 | 20 | String[] chunks = str.split(delimiter); | |||||
| 100 | 20 | return chunks; | |||||
| 101 | } | ||||||
| 102 | } |
