Package org.apache.tools.ant.taskdefs.optional.junitlauncher.confined

## Class SingleTestClass

- 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`

- - ### Nested Class Summary

    - ### Nested classes/interfaces inherited from class org.apache.tools.ant.taskdefs.optional.junitlauncher.confined.TestDefinition

      `TestDefinition.ForkedRepresentation`

  - ### Field Summary

    - ### Fields inherited from class org.apache.tools.ant.taskdefs.optional.junitlauncher.confined.TestDefinition

      `excludeEngines, failureProperty, forkDefinition, haltOnFailure, ifProperty, includeEngines, listeners, outputDir, unlessProperty`

  - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `SingleTestClass()` |

  - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `static TestDefinition` | `fromForkedRepresentation​(javax.xml.stream.XMLStreamReader reader)` |
    `java.lang.String[]` | `getMethods()` |
    `java.lang.String` | `getName()` |
    `void` | `setMethods​(java.lang.String methods)` |
    `void` | `setName​(java.lang.String test)` |
    `protected java.util.List<TestDefinition.ForkedRepresentation>` | `toForkedRepresentations()` |

    - ### Methods inherited from class org.apache.tools.ant.taskdefs.optional.junitlauncher.confined.TestDefinition

      `addConfiguredListener, createFork, getExcludeEngines, getFailureProperty, getIncludeEngines, getListeners, getOutputDir, isHaltOnFailure, setExcludeEngines, setFailureProperty, setHaltOnFailure, setIf, setIncludeEngines, setOutputDir, setUnless, shouldRun`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### SingleTestClass

          public SingleTestClass()

  - ### Method Detail

    - #### 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()

    - #### toForkedRepresentations

          protected java.util.List<TestDefinition.ForkedRepresentation> toForkedRepresentations()
                                                                                         throws java.lang.IllegalStateException

      Specified by:
        `toForkedRepresentations` in class `TestDefinition`
      Throws:
        `java.lang.IllegalStateException`

    - #### fromForkedRepresentation

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

      Throws:
        `javax.xml.stream.XMLStreamException`