public abstract class AbstractServiceSpecAssert<S extends AbstractServiceSpecAssert<S,A>,A extends io.fabric8.kubernetes.api.model.ServiceSpec>
extends org.assertj.core.api.AbstractAssert<S,A>
ServiceSpec
specific assertions - Generated by CustomAssertionGenerator.Modifier | Constructor and Description |
---|---|
protected |
AbstractServiceSpecAssert(A actual,
Class<S> selfType)
Creates a new
to make assertions on actual ServiceSpec. |
Modifier and Type | Method and Description |
---|---|
S |
doesNotHaveDeprecatedPublicIPs(String... deprecatedPublicIPs)
Verifies that the actual ServiceSpec's deprecatedPublicIPs does not contain the given String elements.
|
S |
doesNotHaveExternalIPs(String... externalIPs)
Verifies that the actual ServiceSpec's externalIPs does not contain the given String elements.
|
S |
doesNotHavePorts(io.fabric8.kubernetes.api.model.ServicePort... ports)
Verifies that the actual ServiceSpec's ports does not contain the given ServicePort elements.
|
S |
hasAdditionalProperties(Map additionalProperties)
Verifies that the actual ServiceSpec's additionalProperties is equal to the given one.
|
S |
hasClusterIP(String clusterIP)
Verifies that the actual ServiceSpec's clusterIP is equal to the given one.
|
S |
hasDeprecatedPublicIPs(String... deprecatedPublicIPs)
Verifies that the actual ServiceSpec's deprecatedPublicIPs contains the given String elements.
|
S |
hasExternalIPs(String... externalIPs)
Verifies that the actual ServiceSpec's externalIPs contains the given String elements.
|
S |
hasLoadBalancerIP(String loadBalancerIP)
Verifies that the actual ServiceSpec's loadBalancerIP is equal to the given one.
|
S |
hasNoDeprecatedPublicIPs()
Verifies that the actual ServiceSpec has no deprecatedPublicIPs.
|
S |
hasNoExternalIPs()
Verifies that the actual ServiceSpec has no externalIPs.
|
S |
hasNoPorts()
Verifies that the actual ServiceSpec has no ports.
|
S |
hasOnlyDeprecatedPublicIPs(String... deprecatedPublicIPs)
Verifies that the actual ServiceSpec's deprecatedPublicIPs contains only the given String elements and nothing else in whatever order.
|
S |
hasOnlyExternalIPs(String... externalIPs)
Verifies that the actual ServiceSpec's externalIPs contains only the given String elements and nothing else in whatever order.
|
S |
hasOnlyPorts(io.fabric8.kubernetes.api.model.ServicePort... ports)
Verifies that the actual ServiceSpec's ports contains only the given ServicePort elements and nothing else in whatever order.
|
S |
hasPortalIP(String portalIP)
Verifies that the actual ServiceSpec's portalIP is equal to the given one.
|
S |
hasPorts(io.fabric8.kubernetes.api.model.ServicePort... ports)
Verifies that the actual ServiceSpec's ports contains the given ServicePort elements.
|
S |
hasSelector(Map selector)
Verifies that the actual ServiceSpec's selector is equal to the given one.
|
S |
hasSessionAffinity(String sessionAffinity)
Verifies that the actual ServiceSpec's sessionAffinity is equal to the given one.
|
S |
hasType(String type)
Verifies that the actual ServiceSpec'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 AbstractServiceSpecAssert(A actual, Class<S> selfType)
AbstractServiceSpecAssert
to make assertions on actual ServiceSpec.actual
- the ServiceSpec we want to make assertions on.public S hasAdditionalProperties(Map additionalProperties)
additionalProperties
- the given additionalProperties to compare the actual ServiceSpec's additionalProperties to.AssertionError
- - if the actual ServiceSpec's additionalProperties is not equal to the given one.public S hasClusterIP(String clusterIP)
clusterIP
- the given clusterIP to compare the actual ServiceSpec's clusterIP to.AssertionError
- - if the actual ServiceSpec's clusterIP is not equal to the given one.public S hasDeprecatedPublicIPs(String... deprecatedPublicIPs)
deprecatedPublicIPs
- the given elements that should be contained in actual ServiceSpec's deprecatedPublicIPs.AssertionError
- if the actual ServiceSpec's deprecatedPublicIPs does not contain all given String elements.public S hasOnlyDeprecatedPublicIPs(String... deprecatedPublicIPs)
deprecatedPublicIPs
- the given elements that should be contained in actual ServiceSpec's deprecatedPublicIPs.AssertionError
- if the actual ServiceSpec's deprecatedPublicIPs does not contain all given String elements.public S doesNotHaveDeprecatedPublicIPs(String... deprecatedPublicIPs)
deprecatedPublicIPs
- the given elements that should not be in actual ServiceSpec's deprecatedPublicIPs.AssertionError
- if the actual ServiceSpec's deprecatedPublicIPs contains any given String elements.public S hasNoDeprecatedPublicIPs()
AssertionError
- if the actual ServiceSpec's deprecatedPublicIPs is not empty.public S hasExternalIPs(String... externalIPs)
externalIPs
- the given elements that should be contained in actual ServiceSpec's externalIPs.AssertionError
- if the actual ServiceSpec's externalIPs does not contain all given String elements.public S hasOnlyExternalIPs(String... externalIPs)
externalIPs
- the given elements that should be contained in actual ServiceSpec's externalIPs.AssertionError
- if the actual ServiceSpec's externalIPs does not contain all given String elements.public S doesNotHaveExternalIPs(String... externalIPs)
externalIPs
- the given elements that should not be in actual ServiceSpec's externalIPs.AssertionError
- if the actual ServiceSpec's externalIPs contains any given String elements.public S hasNoExternalIPs()
AssertionError
- if the actual ServiceSpec's externalIPs is not empty.public S hasLoadBalancerIP(String loadBalancerIP)
loadBalancerIP
- the given loadBalancerIP to compare the actual ServiceSpec's loadBalancerIP to.AssertionError
- - if the actual ServiceSpec's loadBalancerIP is not equal to the given one.public S hasPortalIP(String portalIP)
portalIP
- the given portalIP to compare the actual ServiceSpec's portalIP to.AssertionError
- - if the actual ServiceSpec's portalIP is not equal to the given one.public S hasPorts(io.fabric8.kubernetes.api.model.ServicePort... ports)
ports
- the given elements that should be contained in actual ServiceSpec's ports.AssertionError
- if the actual ServiceSpec's ports does not contain all given ServicePort elements.public S hasOnlyPorts(io.fabric8.kubernetes.api.model.ServicePort... ports)
ports
- the given elements that should be contained in actual ServiceSpec's ports.AssertionError
- if the actual ServiceSpec's ports does not contain all given ServicePort elements.public S doesNotHavePorts(io.fabric8.kubernetes.api.model.ServicePort... ports)
ports
- the given elements that should not be in actual ServiceSpec's ports.AssertionError
- if the actual ServiceSpec's ports contains any given ServicePort elements.public S hasNoPorts()
AssertionError
- if the actual ServiceSpec's ports is not empty.public S hasSelector(Map selector)
selector
- the given selector to compare the actual ServiceSpec's selector to.AssertionError
- - if the actual ServiceSpec's selector is not equal to the given one.public S hasSessionAffinity(String sessionAffinity)
sessionAffinity
- the given sessionAffinity to compare the actual ServiceSpec's sessionAffinity to.AssertionError
- - if the actual ServiceSpec's sessionAffinity is not equal to the given one.public S hasType(String type)
type
- the given type to compare the actual ServiceSpec's type to.AssertionError
- - if the actual ServiceSpec's type is not equal to the given one.Copyright © 2011–2016 Red Hat. All rights reserved.