public abstract class AbstractContainerAssert<S extends AbstractContainerAssert<S,A>,A extends io.fabric8.kubernetes.api.model.Container>
extends org.assertj.core.api.AbstractAssert<S,A>
Container
specific assertions - Generated by CustomAssertionGenerator.Modifier | Constructor and Description |
---|---|
protected |
AbstractContainerAssert(A actual,
Class<S> selfType)
Creates a new
to make assertions on actual Container. |
Modifier and Type | Method and Description |
---|---|
S |
hasAdditionalProperties(Map additionalProperties)
Verifies that the actual Container's additionalProperties is equal to the given one.
|
S |
hasArgs(String... args)
Verifies that the actual Container's args contains the given String elements.
|
S |
hasCommand(String... command)
Verifies that the actual Container's command contains the given String elements.
|
S |
hasEnv(io.fabric8.kubernetes.api.model.EnvVar... env)
Verifies that the actual Container's env contains the given EnvVar elements.
|
S |
hasImage(String image)
Verifies that the actual Container's image is equal to the given one.
|
S |
hasImagePullPolicy(String imagePullPolicy)
Verifies that the actual Container's imagePullPolicy is equal to the given one.
|
S |
hasLifecycle(io.fabric8.kubernetes.api.model.Lifecycle lifecycle)
Verifies that the actual Container's lifecycle is equal to the given one.
|
S |
hasLivenessProbe(io.fabric8.kubernetes.api.model.Probe livenessProbe)
Verifies that the actual Container's livenessProbe is equal to the given one.
|
S |
hasName(String name)
Verifies that the actual Container's name is equal to the given one.
|
S |
hasNoArgs()
Verifies that the actual Container has no args.
|
S |
hasNoCommand()
Verifies that the actual Container has no command.
|
S |
hasNoEnv()
Verifies that the actual Container has no env.
|
S |
hasNoPorts()
Verifies that the actual Container has no ports.
|
S |
hasNoVolumeMounts()
Verifies that the actual Container has no volumeMounts.
|
S |
hasPorts(io.fabric8.kubernetes.api.model.ContainerPort... ports)
Verifies that the actual Container's ports contains the given ContainerPort elements.
|
S |
hasReadinessProbe(io.fabric8.kubernetes.api.model.Probe readinessProbe)
Verifies that the actual Container's readinessProbe is equal to the given one.
|
S |
hasResources(io.fabric8.kubernetes.api.model.ResourceRequirements resources)
Verifies that the actual Container's resources is equal to the given one.
|
S |
hasSecurityContext(io.fabric8.kubernetes.api.model.SecurityContext securityContext)
Verifies that the actual Container's securityContext is equal to the given one.
|
S |
hasStdin(Boolean stdin)
Verifies that the actual Container's stdin is equal to the given one.
|
S |
hasTerminationMessagePath(String terminationMessagePath)
Verifies that the actual Container's terminationMessagePath is equal to the given one.
|
S |
hasTty(Boolean tty)
Verifies that the actual Container's tty is equal to the given one.
|
S |
hasVolumeMounts(io.fabric8.kubernetes.api.model.VolumeMount... volumeMounts)
Verifies that the actual Container's volumeMounts contains the given VolumeMount elements.
|
S |
hasWorkingDir(String workingDir)
Verifies that the actual Container's workingDir 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 AbstractContainerAssert(A actual, Class<S> selfType)
AbstractContainerAssert
to make assertions on actual Container.actual
- the Container we want to make assertions on.public S hasAdditionalProperties(Map additionalProperties)
additionalProperties
- the given additionalProperties to compare the actual Container's additionalProperties to.AssertionError
- - if the actual Container's additionalProperties is not equal to the given one.public S hasArgs(String... args)
args
- the given elements that should be contained in actual Container's args.AssertionError
- if the actual Container's args does not contain all given String elements.public S hasNoArgs()
AssertionError
- if the actual Container's args is not empty.public S hasCommand(String... command)
command
- the given elements that should be contained in actual Container's command.AssertionError
- if the actual Container's command does not contain all given String elements.public S hasNoCommand()
AssertionError
- if the actual Container's command is not empty.public S hasEnv(io.fabric8.kubernetes.api.model.EnvVar... env)
env
- the given elements that should be contained in actual Container's env.AssertionError
- if the actual Container's env does not contain all given EnvVar elements.public S hasNoEnv()
AssertionError
- if the actual Container's env is not empty.public S hasImage(String image)
image
- the given image to compare the actual Container's image to.AssertionError
- - if the actual Container's image is not equal to the given one.public S hasImagePullPolicy(String imagePullPolicy)
imagePullPolicy
- the given imagePullPolicy to compare the actual Container's imagePullPolicy to.AssertionError
- - if the actual Container's imagePullPolicy is not equal to the given one.public S hasLifecycle(io.fabric8.kubernetes.api.model.Lifecycle lifecycle)
lifecycle
- the given lifecycle to compare the actual Container's lifecycle to.AssertionError
- - if the actual Container's lifecycle is not equal to the given one.public S hasLivenessProbe(io.fabric8.kubernetes.api.model.Probe livenessProbe)
livenessProbe
- the given livenessProbe to compare the actual Container's livenessProbe to.AssertionError
- - if the actual Container's livenessProbe is not equal to the given one.public S hasName(String name)
name
- the given name to compare the actual Container's name to.AssertionError
- - if the actual Container's name is not equal to the given one.public S hasPorts(io.fabric8.kubernetes.api.model.ContainerPort... ports)
ports
- the given elements that should be contained in actual Container's ports.AssertionError
- if the actual Container's ports does not contain all given ContainerPort elements.public S hasNoPorts()
AssertionError
- if the actual Container's ports is not empty.public S hasReadinessProbe(io.fabric8.kubernetes.api.model.Probe readinessProbe)
readinessProbe
- the given readinessProbe to compare the actual Container's readinessProbe to.AssertionError
- - if the actual Container's readinessProbe is not equal to the given one.public S hasResources(io.fabric8.kubernetes.api.model.ResourceRequirements resources)
resources
- the given resources to compare the actual Container's resources to.AssertionError
- - if the actual Container's resources is not equal to the given one.public S hasSecurityContext(io.fabric8.kubernetes.api.model.SecurityContext securityContext)
securityContext
- the given securityContext to compare the actual Container's securityContext to.AssertionError
- - if the actual Container's securityContext is not equal to the given one.public S hasStdin(Boolean stdin)
stdin
- the given stdin to compare the actual Container's stdin to.AssertionError
- - if the actual Container's stdin is not equal to the given one.public S hasTerminationMessagePath(String terminationMessagePath)
terminationMessagePath
- the given terminationMessagePath to compare the actual Container's terminationMessagePath to.AssertionError
- - if the actual Container's terminationMessagePath is not equal to the given one.public S hasTty(Boolean tty)
tty
- the given tty to compare the actual Container's tty to.AssertionError
- - if the actual Container's tty is not equal to the given one.public S hasVolumeMounts(io.fabric8.kubernetes.api.model.VolumeMount... volumeMounts)
volumeMounts
- the given elements that should be contained in actual Container's volumeMounts.AssertionError
- if the actual Container's volumeMounts does not contain all given VolumeMount elements.public S hasNoVolumeMounts()
AssertionError
- if the actual Container's volumeMounts is not empty.public S hasWorkingDir(String workingDir)
workingDir
- the given workingDir to compare the actual Container's workingDir to.AssertionError
- - if the actual Container's workingDir is not equal to the given one.Copyright © 2011–2015 Red Hat. All rights reserved.