org.apache.maven.surefire.testset
Class TestRequest

java.lang.Object
  extended by org.apache.maven.surefire.testset.TestRequest

public class TestRequest
extends Object

Information about the requested test.

Author:
Kristian Rosenvold

Constructor Summary
TestRequest(List suiteXmlFiles, File testSourceDirectory, String requestedTest)
           
TestRequest(List suiteXmlFiles, File testSourceDirectory, String requestedTest, String requestedTestMethod)
           
 
Method Summary
 String getRequestedTest()
          A specific test request issued with -Dtest= from the command line.
 String getRequestedTestMethod()
          A specific test request method issued with -Dtest=class#method from the command line.
 List getSuiteXmlFiles()
          Represents suitexmlfiles that define the test-run request
 File getTestSourceDirectory()
          Test source directory, normally ${project.build.testSourceDirectory}
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestRequest

public TestRequest(List suiteXmlFiles,
                   File testSourceDirectory,
                   String requestedTest)

TestRequest

public TestRequest(List suiteXmlFiles,
                   File testSourceDirectory,
                   String requestedTest,
                   String requestedTestMethod)
Since:
2.7.3
Method Detail

getSuiteXmlFiles

public List getSuiteXmlFiles()
Represents suitexmlfiles that define the test-run request

Returns:
A list of java.io.File objects.

getTestSourceDirectory

public File getTestSourceDirectory()
Test source directory, normally ${project.build.testSourceDirectory}

Returns:
A file pointing to test sources

getRequestedTest

public String getRequestedTest()
A specific test request issued with -Dtest= from the command line.

Returns:
The string specified at the command line

getRequestedTestMethod

public String getRequestedTestMethod()
A specific test request method issued with -Dtest=class#method from the command line.

Returns:
The string specified at the command line
Since:
2.7.3


Copyright © 2004-2013 The Apache Software Foundation. All Rights Reserved.