java.lang.Object
org.apache.tools.ant.taskdefs.optional.junitlauncher.confined.TestDefinition
org.apache.tools.ant.taskdefs.optional.junitlauncher.confined.SingleTestClass
All Implemented Interfaces:
NamedTest

public class SingleTestClass
extends TestDefinition
implements NamedTest
Represents the single test (class) that's configured to be launched by the JUnitLauncherTask
  • Constructor Details

    • SingleTestClass

      public SingleTestClass()
  • Method Details

    • setName

      public void setName​(java.lang.String test)
    • getName

      public java.lang.String getName()
      Specified by:
      getName in interface NamedTest
      Returns:
      Returns the name of the test
    • setMethods

      public void setMethods​(java.lang.String methods)
    • getMethods

      public java.lang.String[] getMethods()
    • toForkedRepresentation

      protected void toForkedRepresentation​(JUnitLauncherTask task, javax.xml.stream.XMLStreamWriter writer) throws javax.xml.stream.XMLStreamException
      Specified by:
      toForkedRepresentation in class TestDefinition
      Throws:
      javax.xml.stream.XMLStreamException
    • fromForkedRepresentation

      public static TestDefinition fromForkedRepresentation​(javax.xml.stream.XMLStreamReader reader) throws javax.xml.stream.XMLStreamException
      Throws:
      javax.xml.stream.XMLStreamException