Interface Parameters.MutableTestsParameters

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int ALL_TESTS
      A constant used to indicate that all tests in the test suite should be run.
      static int SPECIFIED_TESTS
      A constant used to indicate that specified tests in the test suite should be run.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.String[] getSpecifiedTests()
      Get the set of specified tests to be used as the set of tests to be run when the mode is set to SPECIFIED_TESTS.
      int getTestsMode()
      Get the current mode for how the tests are specified.
      void setSpecifiedTests​(java.lang.String[] tests)
      Set the specified tests to be be run when the mode is set to SPECIFIED_TESTS.
      void setTests​(java.lang.String[] tests)
      Specify the tests to be executed.
      void setTestsMode​(int mode)
      Set the current mode for how the tests are specified.
    • Field Detail

      • ALL_TESTS

        static final int ALL_TESTS
        A constant used to indicate that all tests in the test suite should be run.
        See Also:
        Constant Field Values
      • SPECIFIED_TESTS

        static final int SPECIFIED_TESTS
        A constant used to indicate that specified tests in the test suite should be run.
        See Also:
        Constant Field Values
    • Method Detail

      • setTests

        void setTests​(java.lang.String[] tests)
        Specify the tests to be executed.
        Parameters:
        tests - If null, set the tests mode to ALL_TESTS; if not null, set the tests mode to SPECIFIED_TESTS, and set the specified tests.
        See Also:
        Parameters.TestsParameters.getTests()
      • getTestsMode

        int getTestsMode()
        Get the current mode for how the tests are specified.
        Returns:
        ALL_TESTS if all tests are to be run, irrespective of the selected tests, or SPECIFIED_TESTS if a set of specified tests are to be run.
        See Also:
        setTestsMode(int), ALL_TESTS, SPECIFIED_TESTS
      • setTestsMode

        void setTestsMode​(int mode)
        Set the current mode for how the tests are specified.
        Parameters:
        mode - use ALL_TESTS if all tests are to be run, irrespective of the selected tests, or SPECIFIED_TESTS if a set of specified tests are to be run.
        Throws:
        java.lang.IllegalArgumentException - if neither ALL_TESTS or SPECIFIED_TESTS is given
        See Also:
        getTestsMode(), ALL_TESTS, SPECIFIED_TESTS
      • getSpecifiedTests

        java.lang.String[] getSpecifiedTests()
        Get the set of specified tests to be used as the set of tests to be run when the mode is set to SPECIFIED_TESTS. When the mode is set to ALL_TESTS, the specified tests are remembered, but not used, until the mode is set back to SPECIFIED_TESTS.
        Returns:
        an array of specified tests to be used as the set of tests to be run when the mode is set to SPECIFIED_TESTS.
        See Also:
        setSpecifiedTests(java.lang.String[]), Parameters.TestsParameters.getTests()
      • setSpecifiedTests

        void setSpecifiedTests​(java.lang.String[] tests)
        Set the specified tests to be be run when the mode is set to SPECIFIED_TESTS. When the mode is set to ALL_TESTS, these tests are remembered, but not used, until the mode is set back to SPECIFIED_TESTS.
        Parameters:
        tests - an array of paths identifying the tests to be run
        See Also:
        getSpecifiedTests(), Parameters.TestsParameters.getTests()