Class GUIRunner.TestProgressBar

    • Field Detail

      • qual

        private Quality qual
        The maximal quality found in testcases so far. This determines the foreground color of this progress bar. This is null initially and initialized in startTestRun(TestCase).
    • Constructor Detail

      • TestProgressBar

        TestProgressBar()
        Creates a new TestProgressBar instance.
    • Method Detail

      • initClassStructure

        void initClassStructure​(org.junit.runner.Description desc)
        Notifies that the structure of the test class may have been updated.

        Sets maximum, minimum an current value of the progress bar. Sets qual to Quality.Scheduled indicating that no failure occurred yet and the color is the ok-color.

        Parameters:
        desc - a description of the test structure defined in the test class which is a hierarchy of suites and singular tests.
      • startTestRun

        void startTestRun​(TestCase testCase)
        Notifies that a test run given by testCase is going to be run next.

        Only the tests which are Quality.Scheduled are really run. The others just go into the length and color of the progress bar when starting the run: The initial length depends on the number of non-scheduled testcases and the color is the worst-case color of all these testcases.

        Parameters:
        testCase - the hierarchy of all tests defined by the test class and in particular of those to be run: those which are Quality.Scheduled.
      • detValQualRec

        private void detValQualRec​(TestCase testCase)
        Determines recursively the length of the progress bar and qual based on the non-scheduled test cases.
        Parameters:
        testCase - the hierarchy of all tests defined by the test class and in particular of those to be run: those which are Quality.Scheduled.
      • noteReportResult

        void noteReportResult​(TestCase testCase)
        Notifies that the singular test testCase is finished.

        Pushes the progress bar one further and upates the color of the progress bar as described in GUIRunner.TestProgressBar.

        Parameters:
        testCase - The testcase comprising the result of the singular test finished.