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 voidbuildsDeleted(Set<Long> buildIds)Called to cleanup all data associated with given buildsvoidclearCaches()Clear all cache dataFirstFailedInCachegetFirstFailedInCache()Long2StatusCollectiongetRawCachedTests(long buildId)jetbrains.buildServer.serverSide.tests.BuildTypeTestsCachegetTestsCache()Map<Long,SBuild>getTestsFixedBy(SBuild fixer)booleanhasBuildsWithTests()voidprocessTestHistoryBefore(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:BuildTypeTestsClear all cache data- Specified by:
clearCachesin interfaceBuildTypeTests
-
getRawCachedTests
@Nullable public Long2StatusCollection getRawCachedTests(long buildId)
- Specified by:
getRawCachedTestsin interfaceBuildTypeTests
-
processTestHistoryBefore
public void processTestHistoryBefore(@NotNull SBuild build, @NotNull BuildTestsProcessor processor)- Specified by:
processTestHistoryBeforein interfaceBuildTypeTests
-
getTestsFixedBy
public Map<Long,SBuild> getTestsFixedBy(SBuild fixer)
- Specified by:
getTestsFixedByin 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:
getFirstFailedInCachein interfaceBuildTypeTests
-
getTestsCache
public jetbrains.buildServer.serverSide.tests.BuildTypeTestsCache getTestsCache()
-
hasBuildsWithTests
public boolean hasBuildsWithTests()
- Specified by:
hasBuildsWithTestsin 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:BuildTypeTestsCalled to cleanup all data associated with given builds- Specified by:
buildsDeletedin interfaceBuildTypeTests- Parameters:
buildIds- build identifiers
-
-