Interface STest

  • All Known Subinterfaces:
    TestEx
    All Known Implementing Classes:
    TestImpl

    public interface STest
    Represents a single test in a project, provides information about responsibility.
    Since:
    6.5
    Author:
    Sergey Anchipolevsky, Maxim Podkolzine (maxim.podkolzine@jetbrains.com)
    See Also:
    STestRun
    • Method Detail

      • getName

        @NotNull
        TestName getName()
        Returns associated (low-level) TestName object
        Returns:
        associated TestName object
      • getTestNameId

        long getTestNameId()
        Returns identifier of the test name.
        Returns:
        test name identifier.
      • getTestId

        @Deprecated
        long getTestId()
        Deprecated.
        use getTestNameId() instead.
        Returns the id associated with this test
        Returns:
        test id
      • getProjectId

        @NotNull
        String getProjectId()
        Returns related project id
        Returns:
        related project id
      • getProjectExternalId

        @Nullable
        String getProjectExternalId()
        Returns related project external id
        Returns:
        related project external id
        Since:
        8.0
      • getResponsibility

        @Nullable
        TestNameResponsibilityEntry getResponsibility()
        Deprecated.
        since 8.0, consider using getAllResponsibilities()
        Returns responsibility information for the test.

        This is a shortcut method to check quickly whether the test has a responsibility. For a full information of the test responsibility, the client is expected to use getAllResponsibilities().

        Returns:
        responsibility information for the test
      • getAllResponsibilities

        @NotNull
        List<TestNameResponsibilityEntry> getAllResponsibilities()
        Returns all responsibilities for the test
        Returns:
        all responsibilities for the test
        Since:
        8.0
      • isMuted

        boolean isMuted()
        Determines whether this test is currently muted (in project or in build type).

        The returned information is up-do-date on the moment of call only and can change at any moment.

        Can be significantly faster than getCurrentMuteInfo() != null check.

        Returns:
        whether this test is muted.
      • getCurrentMuteInfo

        @Nullable
        CurrentMuteInfo getCurrentMuteInfo()
        Returns current test mute info.
        Returns:
        current test mute info