Class TestCaseResultImpl

    • Method Detail

      • getMethodName

        @Nullable
        public @Nullable String getMethodName()
        Specified by:
        getMethodName in interface TestCaseResult
        Returns:
        the user friendly view of the TestCase if available.
      • setTestCase

        public void setTestCase​(TestCase testCase)
      • getDuration

        public long getDuration()
        Description copied from interface: TestCaseResult
        How long the test took to run
        Specified by:
        getDuration in interface TestCaseResult
        Returns:
        duration of the TestCase in milliseconds
      • setDuration

        public void setDuration​(long duration)
      • setTestClassResult

        public void setTestClassResult​(TestClassResult testClassResult)
        Description copied from interface: TestCaseResult
        Set the TestClassResult this test result belongs to
        Specified by:
        setTestClassResult in interface TestCaseResult
        Parameters:
        testClassResult - this test result belongs to
      • getState

        public TestState getState()
        Description copied from interface: TestCaseResult
        Get the state of this test run, e.g. FAILED or SUCCESS
        Specified by:
        getState in interface TestCaseResult
        Returns:
        the state of this test run.
      • setState

        public void setState​(TestState state)
      • setDeltaState

        public void setDeltaState​(TestDeltaState testDeltaState)
        Description copied from interface: TestCaseResult
        Set the delta state for this test (the difference between the state of this test and the state in the last build)
        Specified by:
        setDeltaState in interface TestCaseResult
        Parameters:
        testDeltaState - - the delta state for this test
      • getFailingSince

        public int getFailingSince()
        Description copied from interface: TestCaseResult
        If in delta state FAILING, return the build number for the build that this test started failing in. If the delta state BROKEN, return the build numver this test was run in. If in delta state FIXED, return the build number at the beginning of the failure span that was fixed. Otherwise it will be -1.
        Specified by:
        getFailingSince in interface TestCaseResult
        Returns:
        the build number for the build that this test started failing in.
      • setFailingSince

        public void setFailingSince​(int buildNumber)
        Description copied from interface: TestCaseResult
        Set the build number for the build that this test started failing in.
        Specified by:
        setFailingSince in interface TestCaseResult
        Parameters:
        buildNumber - that the test has been failing since
      • equals

        public boolean equals​(Object o)
        Overrides:
        equals in class com.atlassian.core.bean.EntityObject
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class com.atlassian.core.bean.EntityObject
      • isQuarantined

        public boolean isQuarantined()
        Description copied from interface: TestCaseResult
        Check if the test case result was quarantined
        Specified by:
        isQuarantined in interface TestCaseResult
        Returns:
        true/false quarantine status for this result
      • setQuarantined

        public void setQuarantined​(boolean quarantined)