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 String
getCurrentSuite(int flowId)
TestInfo
getCurrentTest(int flowId)
List<Integer>
getFlows()
TestInfo
getLatestTest(int flowId)
String
getTestName(String testName, int flowId)
This method creates test name and prepends suite name, if neededboolean
hasSuites(int flowId)
void
releaseFlow(int flowIdToRelease)
void
restoreFrom(RuntimeInfoStorage runtimeInfoStorage)
void
saveTo(RuntimeInfoStorage runtimeInfoStorage)
void
suiteFinished(int flowId, String suiteName)
void
suitesFinished(int flowId)
void
suiteStarted(int flowId, String suiteName)
void
testFinished(int flowId)
TestInfo
testStarted(String testName, int index, int flowId, TestStartInfo testStartInfo)
TestInfo
updateTestName(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:
testFinished
in interfaceCurrentTestHolder
-
testStarted
public TestInfo testStarted(@NotNull String testName, int index, int flowId, TestStartInfo testStartInfo)
- Specified by:
testStarted
in interfaceCurrentTestHolder
-
getCurrentTest
public TestInfo getCurrentTest(int flowId)
- Specified by:
getCurrentTest
in interfaceCurrentTestHolder
-
getLatestTest
public TestInfo getLatestTest(int flowId)
- Specified by:
getLatestTest
in 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:
getFlows
in interfaceCurrentTestHolder
-
releaseFlow
public void releaseFlow(int flowIdToRelease)
- Specified by:
releaseFlow
in interfaceCurrentTestHolder
-
suiteStarted
public void suiteStarted(int flowId, String suiteName)
- Specified by:
suiteStarted
in interfaceCurrentTestHolder
-
getCurrentSuite
@Nullable public String getCurrentSuite(int flowId)
- Specified by:
getCurrentSuite
in interfaceCurrentTestHolder
-
hasSuites
public boolean hasSuites(int flowId)
- Specified by:
hasSuites
in interfaceCurrentTestHolder
-
suiteFinished
public void suiteFinished(int flowId, String suiteName)
- Specified by:
suiteFinished
in interfaceCurrentTestHolder
-
suitesFinished
public void suitesFinished(int flowId)
- Specified by:
suitesFinished
in interfaceCurrentTestHolder
-
getTestName
@NotNull public String getTestName(@NotNull String testName, int flowId)
Description copied from interface:CurrentTestHolder
This method creates test name and prepends suite name, if needed- Specified by:
getTestName
in interfaceCurrentTestHolder
-
restoreFrom
public void restoreFrom(RuntimeInfoStorage runtimeInfoStorage)
- Specified by:
restoreFrom
in interfaceCurrentTestHolder
-
saveTo
public void saveTo(RuntimeInfoStorage runtimeInfoStorage)
- Specified by:
saveTo
in interfaceCurrentTestHolder
-
updateTestName
public TestInfo updateTestName(@NotNull TestInfo currentTest, @NotNull String newTestName, int flowId)
- Specified by:
updateTestName
in interfaceCurrentTestHolder
-
-