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 |
hasCommand(String... command)
Verifies that the actual Container's command contains the given String elements.
|
S |
hasCpu(Integer cpu)
Verifies that the actual Container's cpu is equal to the given one.
|
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.LivenessProbe livenessProbe)
Verifies that the actual Container's livenessProbe is equal to the given one.
|
S |
hasMemory(Integer memory)
Verifies that the actual Container's memory is equal to the given one.
|
S |
hasName(String name)
Verifies that the actual Container's name is equal to the given one.
|
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.Port... ports)
Verifies that the actual Container's ports contains the given Port elements.
|
S |
hasPrivileged(Boolean privileged)
Verifies that the actual Container's privileged is equal to the given one.
|
S |
hasTerminationMessagePath(String terminationMessagePath)
Verifies that the actual Container's terminationMessagePath 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, usingDefaultComparatorprotected 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 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 hasCpu(Integer cpu)
cpu - the given cpu to compare the actual Container's cpu to.AssertionError - - if the actual Container's cpu is not equal to the given one.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.LivenessProbe 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 hasMemory(Integer memory)
memory - the given memory to compare the actual Container's memory to.AssertionError - - if the actual Container's memory 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.Port... 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 Port elements.public S hasNoPorts()
AssertionError - if the actual Container's ports is not empty.public S hasPrivileged(Boolean privileged)
privileged - the given privileged to compare the actual Container's privileged to.AssertionError - - if the actual Container's privileged 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 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.