Class TestRequest


  • public class TestRequest
    extends java.lang.Object
    Information about the requested test.
    Author:
    Kristian Rosenvold
    • Constructor Summary

      Constructors 
      Constructor Description
      TestRequest​(java.io.File testSourceDirectory, TestListResolver testListResolver, int rerunFailingTestsCount)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getRerunFailingTestsCount()
      How many times to rerun failing tests, issued with -Dsurefire.rerunFailingTestsCount from the command line.
      TestListResolver getTestListResolver()
      A specific test request issued with -Dtest= from the command line.
      java.io.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​(java.io.File testSourceDirectory,
                           TestListResolver testListResolver,
                           int rerunFailingTestsCount)
    • Method Detail

      • getTestSourceDirectory

        public java.io.File getTestSourceDirectory()
        Test source directory, normally ${project.build.testSourceDirectory}
        Returns:
        a file pointing to test sources
      • getTestListResolver

        public TestListResolver getTestListResolver()
        A specific test request issued with -Dtest= from the command line.
        Returns:
        filter
      • getRerunFailingTestsCount

        public int getRerunFailingTestsCount()
        How many times to rerun failing tests, issued with -Dsurefire.rerunFailingTestsCount from the command line.
        Returns:
        the int parameter to indicate how many times to rerun failing tests