Class SBuildTypeAssert
- java.lang.Object
-
- org.assertj.core.api.AbstractAssert<S,A>
-
- jetbrains.buildServer.serverSide.asserts.SPersistentEntityAssert<SBuildTypeAssert,SBuildType>
-
- jetbrains.buildServer.serverSide.asserts.SBuildTypeAssert
-
- All Implemented Interfaces:
org.assertj.core.api.Assert<SBuildTypeAssert,SBuildType>
,org.assertj.core.api.Descriptable<SBuildTypeAssert>
,org.assertj.core.api.ExtensionPoints<SBuildTypeAssert,SBuildType>
public class SBuildTypeAssert extends SPersistentEntityAssert<SBuildTypeAssert,SBuildType>
-
-
Method Summary
-
Methods inherited from class jetbrains.buildServer.serverSide.asserts.SPersistentEntityAssert
hasName
-
Methods inherited from class org.assertj.core.api.AbstractAssert
as, as, describedAs, describedAs, descriptionText, doesNotHave, doesNotHaveSameClassAs, equals, failWithMessage, getWritableAssertionInfo, has, hashCode, hasSameClassAs, inBinary, inHexadecimal, is, isEqualTo, isExactlyInstanceOf, isIn, isIn, isInstanceOf, isInstanceOfAny, isNot, isNotEqualTo, isNotExactlyInstanceOf, isNotIn, isNotIn, isNotInstanceOf, isNotInstanceOfAny, isNotNull, isNotOfAnyClassIn, isNotSameAs, isNull, isOfAnyClassIn, isSameAs, overridingErrorMessage, usingComparator, usingDefaultComparator
-
-
-
-
Method Detail
-
hasInternalId
public SBuildTypeAssert hasInternalId(String expected)
-
hasExternalId
public SBuildTypeAssert hasExternalId(String expected)
- Overrides:
hasExternalId
in classSPersistentEntityAssert<SBuildTypeAssert,SBuildType>
-
hasConfigId
public SBuildTypeAssert hasConfigId(String expected)
-
hasInternalIdNotEqualTo
public SBuildTypeAssert hasInternalIdNotEqualTo(String expected)
-
hasHistorySize
public SBuildTypeAssert hasHistorySize(int expectedHistorySize)
-
hasFullHistorySize
public SBuildTypeAssert hasFullHistorySize(int expectedHistorySize)
-
hasFullName
public SBuildTypeAssert hasFullName(String expected)
-
hasDescription
public SBuildTypeAssert hasDescription(String expected)
-
isBasedOn
public SBuildTypeAssert isBasedOn(BuildTypeTemplate template)
Checks if a configuration is based on template. That does not include default template affecting the configuration.
-
hasVcsRootsContainingOnly
public SBuildTypeAssert hasVcsRootsContainingOnly(String... vcsRootExternalIds)
Assert that BuildType has only vcsRoots with specified ids in any order.
-
hasVcsRootsContainingOnly
public SBuildTypeAssert hasVcsRootsContainingOnly(SVcsRoot... vcsRoots)
Assert that BuildType contains only vcsRoots in any order.
-
hasNoVcsRoots
public SBuildTypeAssert hasNoVcsRoots()
Assert that BuildType doesn't have any vcs roots.
-
belongsTo
public SBuildTypeAssert belongsTo(SProject expected)
-
hasParametersContainingOnly
public SBuildTypeAssert hasParametersContainingOnly(org.assertj.core.data.MapEntry... expected)
-
hasNoChildDependencies
public SBuildTypeAssert hasNoChildDependencies()
-
hasDependencyOn
public SBuildTypeAssert hasDependencyOn(SBuildType bt)
-
hasArtifactDependencyOn
public ArtifactDependencyAssert hasArtifactDependencyOn(String dependsOnExtId)
-
hasArtifactDependencyOn
public ArtifactDependencyAssert hasArtifactDependencyOn(SBuildType dependOn)
-
hasNoArtifactDependecies
public SBuildTypeAssert hasNoArtifactDependecies()
-
isNotPaused
public SBuildTypeAssert isNotPaused()
-
isPaused
public SBuildTypeAssert isPaused()
-
isPausedWithComment
public SBuildTypeAssert isPausedWithComment(String comment)
-
isComposite
public SBuildTypeAssert isComposite()
-
hasOption
public <T> SBuildTypeAssert hasOption(@NotNull Option<T> option, @NotNull T value)
-
hasOptionDefaultValue
public <T> SBuildTypeAssert hasOptionDefaultValue(Option<T> option, T expected)
-
hasDeclaredOption
public <T> SBuildTypeAssert hasDeclaredOption(Option<T> option, T expected)
-
hasParameterValue
public SBuildTypeAssert hasParameterValue(@NotNull String parameterKey, @Nullable String expectedValue)
-
hasParameter
public SBuildTypeAssert hasParameter(@NotNull String parameterKey, @Nullable Parameter expectedParameter)
-
hasParameter
public SBuildTypeAssert hasParameter(@NotNull String parameterKey, @Nullable String value, @Nullable String spec)
-
hasOnlyParameters
public SBuildTypeAssert hasOnlyParameters(int expectedNumOfOwnParams, String... paramArray)
- Parameters:
expectedNumOfOwnParams
- expected number of parameters in build config own settingsparamArray
- odd elements are param names, even ones are expected values
-
hasRunnersOrder
public SBuildTypeAssert hasRunnersOrder(String... expectedRunnerIds)
The assertion does not check runners content, just ids- Parameters:
expectedRunnerIds
- expected runner ids
-
hasOnlyRunners
public SBuildTypeAssert hasOnlyRunners(String... paramArray)
The assertion checks runner ids and values of a parameter named 'p' (representing the content of a runner)- Parameters:
paramArray
- odd elements are runner ids, even ones are expected values of the param 'p' these runners
-
hasOnlyTriggers
public SBuildTypeAssert hasOnlyTriggers(String... paramArray)
- Parameters:
paramArray
- odd elements are trigger ids, even ones are expected values of the param 'p' for these triggers
-
hasOnlyBuildFeatures
public SBuildTypeAssert hasOnlyBuildFeatures(String... paramArray)
- Parameters:
paramArray
- odd elements are build feature ids, even ones are expected values of the param 'p' for these features
-
hasOnlyRequirements
public SBuildTypeAssert hasOnlyRequirements(String... paramArray)
- Parameters:
paramArray
- odd elements are requirement ids, even ones are expected parameter values in these requirements
-
hasOnlyArtifactDependencies
public SBuildTypeAssert hasOnlyArtifactDependencies(String... pathsArray)
- Parameters:
pathsArray
- odd elements are artifact dep. ids, even ones are expected source path values for these dependencies
-
hasOnlySnapshotDependencies
public SBuildTypeAssert hasOnlySnapshotDependencies(String... pathsArray)
- Parameters:
pathsArray
- odd elements are snapshot dep. source build config ids, even ones are expected values of TAKE_SUCCESSFUL_BUILDS_ONLY option for these dependencies (as string, "true" or "false")
-
hasOnlyVcsRoots
public SBuildTypeAssert hasOnlyVcsRoots(String... rulesArray)
- Parameters:
rulesArray
- odd elements are vcs root ids, even ones are expected checkout rules for these roots
-
-