Class CurrentTestHolderImpl
- java.lang.Object
-
- jetbrains.buildServer.serverSide.messages.CurrentTestHolderImpl
-
- All Implemented Interfaces:
CurrentTestHolder
public class CurrentTestHolderImpl extends Object implements CurrentTestHolder
User: kir
-
-
Field Summary
-
Fields inherited from interface jetbrains.buildServer.serverSide.stat.CurrentTestHolder
IGNORED_SUITES
-
-
Constructor Summary
Constructors Constructor Description CurrentTestHolderImpl(FlowHierarchy flowHierarchy, long buildId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCurrentSuite(int flowId)TestInfogetCurrentTest(int flowId)List<Integer>getFlows()TestInfogetLatestTest(int flowId)StringgetTestName(String testName, int flowId)This method creates test name and prepends suite name, if neededbooleanhasSuites(int flowId)voidreleaseFlow(int flowIdToRelease)voidrestoreFrom(RuntimeInfoStorage runtimeInfoStorage)voidsaveTo(RuntimeInfoStorage runtimeInfoStorage)voidsuiteFinished(int flowId, String suiteName)voidsuitesFinished(int flowId)voidsuiteStarted(int flowId, String suiteName)voidtestFinished(int flowId)TestInfotestStarted(String testName, int index, int flowId, TestStartInfo testStartInfo)TestInfoupdateTestName(TestInfo currentTest, String newTestName, int flowId)
-
-
-
Constructor Detail
-
CurrentTestHolderImpl
public CurrentTestHolderImpl(FlowHierarchy flowHierarchy, long buildId)
-
-
Method Detail
-
testFinished
public void testFinished(int flowId)
- Specified by:
testFinishedin interfaceCurrentTestHolder
-
testStarted
public TestInfo testStarted(@NotNull String testName, int index, int flowId, TestStartInfo testStartInfo)
- Specified by:
testStartedin interfaceCurrentTestHolder
-
getCurrentTest
public TestInfo getCurrentTest(int flowId)
- Specified by:
getCurrentTestin interfaceCurrentTestHolder
-
getLatestTest
public TestInfo getLatestTest(int flowId)
- Specified by:
getLatestTestin interfaceCurrentTestHolder- Returns:
- latest test in the flow even if the test has finished. Return null when flow is released
-
getFlows
public List<Integer> getFlows()
- Specified by:
getFlowsin interfaceCurrentTestHolder
-
releaseFlow
public void releaseFlow(int flowIdToRelease)
- Specified by:
releaseFlowin interfaceCurrentTestHolder
-
suiteStarted
public void suiteStarted(int flowId, String suiteName)- Specified by:
suiteStartedin interfaceCurrentTestHolder
-
getCurrentSuite
@Nullable public String getCurrentSuite(int flowId)
- Specified by:
getCurrentSuitein interfaceCurrentTestHolder
-
hasSuites
public boolean hasSuites(int flowId)
- Specified by:
hasSuitesin interfaceCurrentTestHolder
-
suiteFinished
public void suiteFinished(int flowId, String suiteName)- Specified by:
suiteFinishedin interfaceCurrentTestHolder
-
suitesFinished
public void suitesFinished(int flowId)
- Specified by:
suitesFinishedin interfaceCurrentTestHolder
-
getTestName
@NotNull public String getTestName(@NotNull String testName, int flowId)
Description copied from interface:CurrentTestHolderThis method creates test name and prepends suite name, if needed- Specified by:
getTestNamein interfaceCurrentTestHolder
-
restoreFrom
public void restoreFrom(RuntimeInfoStorage runtimeInfoStorage)
- Specified by:
restoreFromin interfaceCurrentTestHolder
-
saveTo
public void saveTo(RuntimeInfoStorage runtimeInfoStorage)
- Specified by:
saveToin interfaceCurrentTestHolder
-
updateTestName
public TestInfo updateTestName(@NotNull TestInfo currentTest, @NotNull String newTestName, int flowId)
- Specified by:
updateTestNamein interfaceCurrentTestHolder
-
-