Class BuildTypeTestsImpl
- java.lang.Object
-
- jetbrains.buildServer.serverSide.tests.BuildTypeTestsImpl
-
- All Implemented Interfaces:
BuildTypeTests
public class BuildTypeTestsImpl extends Object implements BuildTypeTests
- Author:
- kir
-
-
Constructor Summary
Constructors Constructor Description BuildTypeTestsImpl(BuildTypeEx buildType, BuildServerEx server, TestHistory testHistory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
buildsDeleted(Set<Long> buildIds)
Called to cleanup all data associated with given buildsvoid
clearCaches()
Clear all cache dataFirstFailedInCache
getFirstFailedInCache()
Long2StatusCollection
getRawCachedTests(long buildId)
jetbrains.buildServer.serverSide.tests.BuildTypeTestsCache
getTestsCache()
Map<Long,SBuild>
getTestsFixedBy(SBuild fixer)
boolean
hasBuildsWithTests()
void
processTestHistoryBefore(SBuild build, BuildTestsProcessor processor)
-
-
-
Constructor Detail
-
BuildTypeTestsImpl
public BuildTypeTestsImpl(@NotNull BuildTypeEx buildType, @NotNull BuildServerEx server, @NotNull TestHistory testHistory)
-
-
Method Detail
-
clearCaches
public void clearCaches()
Description copied from interface:BuildTypeTests
Clear all cache data- Specified by:
clearCaches
in interfaceBuildTypeTests
-
getRawCachedTests
@Nullable public Long2StatusCollection getRawCachedTests(long buildId)
- Specified by:
getRawCachedTests
in interfaceBuildTypeTests
-
processTestHistoryBefore
public void processTestHistoryBefore(@NotNull SBuild build, @NotNull BuildTestsProcessor processor)
- Specified by:
processTestHistoryBefore
in interfaceBuildTypeTests
-
getTestsFixedBy
public Map<Long,SBuild> getTestsFixedBy(SBuild fixer)
- Specified by:
getTestsFixedBy
in interfaceBuildTypeTests
- Parameters:
fixer
- build which fixes some tests- Returns:
- a map from testNameId to first failure of the test, given that test is fixed in build 'fixer'
-
getFirstFailedInCache
@NotNull public FirstFailedInCache getFirstFailedInCache()
- Specified by:
getFirstFailedInCache
in interfaceBuildTypeTests
-
getTestsCache
public jetbrains.buildServer.serverSide.tests.BuildTypeTestsCache getTestsCache()
-
hasBuildsWithTests
public boolean hasBuildsWithTests()
- Specified by:
hasBuildsWithTests
in interfaceBuildTypeTests
- Returns:
- true if this build type has at least one build with tests
-
buildsDeleted
public void buildsDeleted(Set<Long> buildIds)
Description copied from interface:BuildTypeTests
Called to cleanup all data associated with given builds- Specified by:
buildsDeleted
in interfaceBuildTypeTests
- Parameters:
buildIds
- build identifiers
-
-