Class FailedTestsStorageImpl
- java.lang.Object
-
- jetbrains.buildServer.serverSide.stat.FailedTestsStorageImpl
-
- All Implemented Interfaces:
FailedTestsStorage
public class FailedTestsStorageImpl extends Object implements FailedTestsStorage
Handles failed_tests table. This table must contain failed tests in the build, per testNameId. Also it caches test history details like first failed in/fixed in builds.- Author:
- kir
-
-
Constructor Summary
Constructors Constructor Description FailedTestsStorageImpl(SQLRunnerEx db, ExecutorServices executorServices)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FailedTestInfofindFailedTest(long buildId, long testNameId)Map<Long,gnu.trove.TLongHashSet>getFailedTestIds(Collection<Long> buildIds)Return map buildId to set of failed testNameIds in this buildMap<Long,FailedTestInfo>getFailedTests(long buildId)booleanisActive()voidmarkTestFailed(long buildId, long testNameId, int testId)voidmarkTestSuccessful(long buildId, long testNameId)voidupdateFromTestRuns(long buildId, List<STestRun> tests)
-
-
-
Constructor Detail
-
FailedTestsStorageImpl
public FailedTestsStorageImpl(SQLRunnerEx db, @NotNull ExecutorServices executorServices)
-
-
Method Detail
-
getFailedTests
@NotNull public Map<Long,FailedTestInfo> getFailedTests(long buildId)
- Specified by:
getFailedTestsin interfaceFailedTestsStorage
-
getFailedTestIds
@NotNull public Map<Long,gnu.trove.TLongHashSet> getFailedTestIds(Collection<Long> buildIds)
Description copied from interface:FailedTestsStorageReturn map buildId to set of failed testNameIds in this build- Specified by:
getFailedTestIdsin interfaceFailedTestsStorage- Returns:
- see above
-
findFailedTest
@Nullable public FailedTestInfo findFailedTest(long buildId, long testNameId)
- Specified by:
findFailedTestin interfaceFailedTestsStorage
-
markTestFailed
public void markTestFailed(long buildId, long testNameId, int testId)- Specified by:
markTestFailedin interfaceFailedTestsStorage
-
markTestSuccessful
public void markTestSuccessful(long buildId, long testNameId)- Specified by:
markTestSuccessfulin interfaceFailedTestsStorage
-
updateFromTestRuns
public void updateFromTestRuns(long buildId, @NotNull List<STestRun> tests)- Specified by:
updateFromTestRunsin interfaceFailedTestsStorage
-
isActive
public boolean isActive()
-
-