Class AbstractRenderingTest

  • Direct Known Subclasses:
    RenderingTest, RenderingTest

    public abstract class AbstractRenderingTest
    extends Object
    A generic base JUnit Test to parse some passed content and verify it matches some passed expectation. The format of the input/expectation is specified in TestDataParser.
    Since:
    13.0
    Version:
    $Id: 6ef267dfcd7bcc4107e1315e947167eba28b4e84 $
    • Constructor Detail

      • AbstractRenderingTest

        public AbstractRenderingTest​(String input,
                                     String expected,
                                     String parserId,
                                     String targetSyntaxId,
                                     boolean streaming,
                                     List<String> transformations,
                                     Map<String,​?> configuration,
                                     org.xwiki.component.manager.ComponentManager componentManager)
    • Method Detail

      • throwAssertionException

        protected abstract void throwAssertionException​(String message,
                                                        String expected,
                                                        String result)
      • getComponentManager

        public org.xwiki.component.manager.ComponentManager getComponentManager()
                                                                         throws Exception
        Throws:
        Exception