public abstract class AbstractPodSpecAssert<S extends AbstractPodSpecAssert<S,A>,A extends io.fabric8.kubernetes.api.model.PodSpec>
extends org.assertj.core.api.AbstractAssert<S,A>
PodSpec
specific assertions - Generated by CustomAssertionGenerator.Modifier | Constructor and Description |
---|---|
protected |
AbstractPodSpecAssert(A actual,
Class<S> selfType)
Creates a new
to make assertions on actual PodSpec. |
Modifier and Type | Method and Description |
---|---|
S |
hasAdditionalProperties(Map additionalProperties)
Verifies that the actual PodSpec's additionalProperties is equal to the given one.
|
S |
hasContainers(io.fabric8.kubernetes.api.model.Container... containers)
Verifies that the actual PodSpec's containers contains the given Container elements.
|
S |
hasDnsPolicy(String dnsPolicy)
Verifies that the actual PodSpec's dnsPolicy is equal to the given one.
|
S |
hasHost(String host)
Verifies that the actual PodSpec's host is equal to the given one.
|
S |
hasNoContainers()
Verifies that the actual PodSpec has no containers.
|
S |
hasNodeSelector(Map nodeSelector)
Verifies that the actual PodSpec's nodeSelector is equal to the given one.
|
S |
hasNoVolumes()
Verifies that the actual PodSpec has no volumes.
|
S |
hasRestartPolicy(io.fabric8.kubernetes.api.model.RestartPolicy restartPolicy)
Verifies that the actual PodSpec's restartPolicy is equal to the given one.
|
S |
hasVolumes(io.fabric8.kubernetes.api.model.Volume... volumes)
Verifies that the actual PodSpec's volumes contains the given Volume elements.
|
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 AbstractPodSpecAssert(A actual, Class<S> selfType)
AbstractPodSpecAssert
to make assertions on actual PodSpec.actual
- the PodSpec we want to make assertions on.public S hasAdditionalProperties(Map additionalProperties)
additionalProperties
- the given additionalProperties to compare the actual PodSpec's additionalProperties to.AssertionError
- - if the actual PodSpec's additionalProperties is not equal to the given one.public S hasContainers(io.fabric8.kubernetes.api.model.Container... containers)
containers
- the given elements that should be contained in actual PodSpec's containers.AssertionError
- if the actual PodSpec's containers does not contain all given Container elements.public S hasNoContainers()
AssertionError
- if the actual PodSpec's containers is not empty.public S hasDnsPolicy(String dnsPolicy)
dnsPolicy
- the given dnsPolicy to compare the actual PodSpec's dnsPolicy to.AssertionError
- - if the actual PodSpec's dnsPolicy is not equal to the given one.public S hasHost(String host)
host
- the given host to compare the actual PodSpec's host to.AssertionError
- - if the actual PodSpec's host is not equal to the given one.public S hasNodeSelector(Map nodeSelector)
nodeSelector
- the given nodeSelector to compare the actual PodSpec's nodeSelector to.AssertionError
- - if the actual PodSpec's nodeSelector is not equal to the given one.public S hasRestartPolicy(io.fabric8.kubernetes.api.model.RestartPolicy restartPolicy)
restartPolicy
- the given restartPolicy to compare the actual PodSpec's restartPolicy to.AssertionError
- - if the actual PodSpec's restartPolicy is not equal to the given one.public S hasVolumes(io.fabric8.kubernetes.api.model.Volume... volumes)
volumes
- the given elements that should be contained in actual PodSpec's volumes.AssertionError
- if the actual PodSpec's volumes does not contain all given Volume elements.public S hasNoVolumes()
AssertionError
- if the actual PodSpec's volumes is not empty.Copyright © 2011–2015 Red Hat. All rights reserved.