org.xwiki.rendering.test.cts
Class TestData

java.lang.Object
  extended by org.xwiki.rendering.test.cts.TestData

public class TestData
extends Object

Contains Test Data for a single test.

Since:
4.1M1
Version:
$Id: 8950cb82e1976efb25f2d7f443f73b4c1c4fb85b $

Field Summary
 TestDataConfiguration configuration
          Configuration data for the test.
 String ctsData
          The CTS test data (either input or output, depending on whether the syntax data is input or outut; it's the opposite of the syntax data).
 String ctsExtension
          CTS file extension.
 boolean isSyntaxInputTest
          True if this test is an input test, ie the syntax data represents an input, false otherwise.
 String prefix
          The location where this tests is found in the CTS classpath (eg "cts/simple/bold/bold1").
 String syntaxData
          The syntax data (either input or output).
 String syntaxExtension
          Test Syntax file extension.
 String syntaxId
          The syntax being tested and in which the syntax data is written in (eg "xwiki/2.0").
 
Constructor Summary
TestData()
           
 
Method Summary
 String computeTestName()
          Compute the test name, used to display in the JUnit Test Runner and for ignoring tests.
 boolean equals(Object object)
           
 int hashCode()
           
 boolean isFailingTest()
           
 boolean isNotApplicable()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

syntaxId

public String syntaxId
The syntax being tested and in which the syntax data is written in (eg "xwiki/2.0").


prefix

public String prefix
The location where this tests is found in the CTS classpath (eg "cts/simple/bold/bold1").


syntaxExtension

public String syntaxExtension
Test Syntax file extension. To compute the full Syntax test name, use: prefix + syntaxExtension.


ctsExtension

public String ctsExtension
CTS file extension. To compute the full CTS test name, use: prefix + ctsExtension.


isSyntaxInputTest

public boolean isSyntaxInputTest
True if this test is an input test, ie the syntax data represents an input, false otherwise.


ctsData

public String ctsData
The CTS test data (either input or output, depending on whether the syntax data is input or outut; it's the opposite of the syntax data).


syntaxData

public String syntaxData
The syntax data (either input or output).


configuration

public TestDataConfiguration configuration
Configuration data for the test.

Constructor Detail

TestData

public TestData()
Method Detail

toString

public String toString()
Overrides:
toString in class Object

isNotApplicable

public boolean isNotApplicable()
Returns:
if this test matches a not-applicable-test regex

isFailingTest

public boolean isFailingTest()
Returns:
if this test matches a failing-test regex

computeTestName

public String computeTestName()
Compute the test name, used to display in the JUnit Test Runner and for ignoring tests.

Returns:
the computed test name (eg "simple/bold/bold1 [xwiki/2.0, IN:bold1.in.txt, CTS:bold1.inout.xml]")

equals

public boolean equals(Object object)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2004–2014 XWiki. All rights reserved.