Class TestManagerImpl

    • Constructor Detail

      • TestManagerImpl

        public TestManagerImpl​(@NotNull
                               TestName2Index testName2Index)
    • Method Detail

      • setTestServices

        public void setTestServices​(TestContext testServices)
      • setTestRunContext

        public void setTestRunContext​(TestRunContext testRunContext)
      • createTest

        @NotNull
        public STest createTest​(@NotNull
                                TestName testName,
                                long testNameId,
                                @NotNull
                                String projectId)
        Description copied from interface: STestManager
        Creates an instance of STest with given test name, testNameId and project id.
        Specified by:
        createTest in interface STestManager
        Parameters:
        testName - test name.
        testNameId - test name ID, must be consistent with testName
        projectId - project identifier.
        Returns:
        corresponding test.
      • createTest

        @Deprecated
        @NotNull
        public STest createTest​(long testNameId,
                                @NotNull
                                String projectId)
        Deprecated.
        Description copied from interface: STestManager
        Given test id and project id, creates and returns the STest instance. If there is no test name corresponding to specified test id, an empty string is used.
        Specified by:
        createTest in interface STestManager
        Parameters:
        testNameId - test name id
        projectId - project id
        Returns:
        corresponding test instance
        See Also:
        STestManager.createTest(TestName, long, String)
      • createTests

        @NotNull
        public Map<Long,​STest> createTests​(@NotNull
                                                 Set<Long> testNameIds,
                                                 @NotNull
                                                 String projectId)
        Description copied from interface: STestManager
        Creates tests for a set of test name ids in a given project.
        Specified by:
        createTests in interface STestManager
        Parameters:
        testNameIds - set of test name ids
        projectId - project id
        Returns:
        map of test name id to STest object
      • createTestRun

        @NotNull
        public TestRunEx createTestRun​(@Nullable
                                       SBuild build,
                                       @NotNull
                                       STest test,
                                       @NotNull
                                       Status testStatus,
                                       @Nullable
                                       BuildsManager buildManager)

        Creates a new test run instance. The instance created will have testRunId of 0, meaning HTML hyperlinks (to the build progress log) constructed from this instance (e. g., using <tt:testNameWithPopup/>), when followed, will result in the 1st line of the build progress log focused. If buildManager is non- null, the test run instance is lightweight.

        Specified by:
        createTestRun in interface STestManager
        Parameters:
        build - the build this test run will belong to.
        test - the test which ran as a part of build.
        testStatus - the status of the test run.
        buildManager - build manager used to look up builds; if non- null, the returned instance is lightweight.
        Returns:
        the newly created test run instance.
        See Also:
        STestManager.createTestRun(SBuild, STest, Status, BuildsManager)