Package org.xwiki.rendering.test.cts
Class RenderingTest
- java.lang.Object
-
- org.xwiki.rendering.test.cts.AbstractRenderingTest
-
- org.xwiki.rendering.test.cts.RenderingTest
-
public class RenderingTest extends AbstractRenderingTest
A generic JUnit Test used byCompatibilityTestSuite
to run a single CTS test.- Since:
- 4.1M1
- Version:
- $Id: e0ca19d137f39b6bf59f80f9b0c6a6052d4281fb $
-
-
Constructor Summary
Constructors Constructor Description RenderingTest(TestData testData, String metadataSyntaxId, org.xwiki.component.manager.ComponentManager componentManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute()
Executes a single test.protected void
throwAssertionException(String message, String expected, String result)
-
Methods inherited from class org.xwiki.rendering.test.cts.AbstractRenderingTest
executeInputTest, executeOutputTest, getTestData
-
-
-
-
Constructor Detail
-
RenderingTest
public RenderingTest(TestData testData, String metadataSyntaxId, org.xwiki.component.manager.ComponentManager componentManager)
- Parameters:
testData
- the data for a single testmetadataSyntaxId
- the Syntax id of the syntax used as Metadata in the generated XDOM for parserscomponentManager
- the component manager used to find Parser and Renderers
-
-
Method Detail
-
execute
public void execute() throws Exception
Executes a single test.- Overrides:
execute
in classAbstractRenderingTest
- Throws:
Exception
- if an error happened during the test
-
throwAssertionException
protected void throwAssertionException(String message, String expected, String result)
- Specified by:
throwAssertionException
in classAbstractRenderingTest
-
-