public abstract class AbstractBuildSourceAssert<S extends AbstractBuildSourceAssert<S,A>,A extends io.fabric8.openshift.api.model.BuildSource>
extends org.assertj.core.api.AbstractAssert<S,A>
BuildSource
specific assertions - Generated by CustomAssertionGenerator.Modifier | Constructor and Description |
---|---|
protected |
AbstractBuildSourceAssert(A actual,
Class<S> selfType)
Creates a new
to make assertions on actual BuildSource. |
Modifier and Type | Method and Description |
---|---|
S |
doesNotHaveImages(io.fabric8.openshift.api.model.ImageSource... images)
Verifies that the actual BuildSource's images does not contain the given ImageSource elements.
|
S |
doesNotHaveSecrets(io.fabric8.openshift.api.model.SecretBuildSource... secrets)
Verifies that the actual BuildSource's secrets does not contain the given SecretBuildSource elements.
|
S |
hasAdditionalProperties(Map additionalProperties)
Verifies that the actual BuildSource's additionalProperties is equal to the given one.
|
S |
hasBinary(io.fabric8.openshift.api.model.BinaryBuildSource binary)
Verifies that the actual BuildSource's binary is equal to the given one.
|
S |
hasContextDir(String contextDir)
Verifies that the actual BuildSource's contextDir is equal to the given one.
|
S |
hasDockerfile(String dockerfile)
Verifies that the actual BuildSource's dockerfile is equal to the given one.
|
S |
hasGit(io.fabric8.openshift.api.model.GitBuildSource git)
Verifies that the actual BuildSource's git is equal to the given one.
|
S |
hasImages(io.fabric8.openshift.api.model.ImageSource... images)
Verifies that the actual BuildSource's images contains the given ImageSource elements.
|
S |
hasNoImages()
Verifies that the actual BuildSource has no images.
|
S |
hasNoSecrets()
Verifies that the actual BuildSource has no secrets.
|
S |
hasOnlyImages(io.fabric8.openshift.api.model.ImageSource... images)
Verifies that the actual BuildSource's images contains only the given ImageSource elements and nothing else in whatever order.
|
S |
hasOnlySecrets(io.fabric8.openshift.api.model.SecretBuildSource... secrets)
Verifies that the actual BuildSource's secrets contains only the given SecretBuildSource elements and nothing else in whatever order.
|
S |
hasSecrets(io.fabric8.openshift.api.model.SecretBuildSource... secrets)
Verifies that the actual BuildSource's secrets contains the given SecretBuildSource elements.
|
S |
hasSourceSecret(io.fabric8.kubernetes.api.model.LocalObjectReference sourceSecret)
Verifies that the actual BuildSource's sourceSecret is equal to the given one.
|
S |
hasType(String type)
Verifies that the actual BuildSource's type is equal to the given one.
|
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
protected AbstractBuildSourceAssert(A actual, Class<S> selfType)
AbstractBuildSourceAssert
to make assertions on actual BuildSource.actual
- the BuildSource we want to make assertions on.public S hasAdditionalProperties(Map additionalProperties)
additionalProperties
- the given additionalProperties to compare the actual BuildSource's additionalProperties to.AssertionError
- - if the actual BuildSource's additionalProperties is not equal to the given one.public S hasBinary(io.fabric8.openshift.api.model.BinaryBuildSource binary)
binary
- the given binary to compare the actual BuildSource's binary to.AssertionError
- - if the actual BuildSource's binary is not equal to the given one.public S hasContextDir(String contextDir)
contextDir
- the given contextDir to compare the actual BuildSource's contextDir to.AssertionError
- - if the actual BuildSource's contextDir is not equal to the given one.public S hasDockerfile(String dockerfile)
dockerfile
- the given dockerfile to compare the actual BuildSource's dockerfile to.AssertionError
- - if the actual BuildSource's dockerfile is not equal to the given one.public S hasGit(io.fabric8.openshift.api.model.GitBuildSource git)
git
- the given git to compare the actual BuildSource's git to.AssertionError
- - if the actual BuildSource's git is not equal to the given one.public S hasImages(io.fabric8.openshift.api.model.ImageSource... images)
images
- the given elements that should be contained in actual BuildSource's images.AssertionError
- if the actual BuildSource's images does not contain all given ImageSource elements.public S hasOnlyImages(io.fabric8.openshift.api.model.ImageSource... images)
images
- the given elements that should be contained in actual BuildSource's images.AssertionError
- if the actual BuildSource's images does not contain all given ImageSource elements.public S doesNotHaveImages(io.fabric8.openshift.api.model.ImageSource... images)
images
- the given elements that should not be in actual BuildSource's images.AssertionError
- if the actual BuildSource's images contains any given ImageSource elements.public S hasNoImages()
AssertionError
- if the actual BuildSource's images is not empty.public S hasSecrets(io.fabric8.openshift.api.model.SecretBuildSource... secrets)
secrets
- the given elements that should be contained in actual BuildSource's secrets.AssertionError
- if the actual BuildSource's secrets does not contain all given SecretBuildSource elements.public S hasOnlySecrets(io.fabric8.openshift.api.model.SecretBuildSource... secrets)
secrets
- the given elements that should be contained in actual BuildSource's secrets.AssertionError
- if the actual BuildSource's secrets does not contain all given SecretBuildSource elements.public S doesNotHaveSecrets(io.fabric8.openshift.api.model.SecretBuildSource... secrets)
secrets
- the given elements that should not be in actual BuildSource's secrets.AssertionError
- if the actual BuildSource's secrets contains any given SecretBuildSource elements.public S hasNoSecrets()
AssertionError
- if the actual BuildSource's secrets is not empty.public S hasSourceSecret(io.fabric8.kubernetes.api.model.LocalObjectReference sourceSecret)
sourceSecret
- the given sourceSecret to compare the actual BuildSource's sourceSecret to.AssertionError
- - if the actual BuildSource's sourceSecret is not equal to the given one.public S hasType(String type)
type
- the given type to compare the actual BuildSource's type to.AssertionError
- - if the actual BuildSource's type is not equal to the given one.Copyright © 2011–2016 Red Hat. All rights reserved.