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 FailedTestInfo
findFailedTest(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)
boolean
isActive()
void
markTestFailed(long buildId, long testNameId, int testId)
void
markTestSuccessful(long buildId, long testNameId)
void
updateFromTestRuns(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:
getFailedTests
in interfaceFailedTestsStorage
-
getFailedTestIds
@NotNull public Map<Long,gnu.trove.TLongHashSet> getFailedTestIds(Collection<Long> buildIds)
Description copied from interface:FailedTestsStorage
Return map buildId to set of failed testNameIds in this build- Specified by:
getFailedTestIds
in interfaceFailedTestsStorage
- Returns:
- see above
-
findFailedTest
@Nullable public FailedTestInfo findFailedTest(long buildId, long testNameId)
- Specified by:
findFailedTest
in interfaceFailedTestsStorage
-
markTestFailed
public void markTestFailed(long buildId, long testNameId, int testId)
- Specified by:
markTestFailed
in interfaceFailedTestsStorage
-
markTestSuccessful
public void markTestSuccessful(long buildId, long testNameId)
- Specified by:
markTestSuccessful
in interfaceFailedTestsStorage
-
updateFromTestRuns
public void updateFromTestRuns(long buildId, @NotNull List<STestRun> tests)
- Specified by:
updateFromTestRuns
in interfaceFailedTestsStorage
-
isActive
public boolean isActive()
-
-