public abstract class AbstractServicePortAssert<S extends AbstractServicePortAssert<S,A>,A extends io.fabric8.kubernetes.api.model.ServicePort>
extends org.assertj.core.api.AbstractAssert<S,A>
ServicePort specific assertions - Generated by CustomAssertionGenerator.| Modifier | Constructor and Description |
|---|---|
protected |
AbstractServicePortAssert(A actual,
Class<S> selfType)
Creates a new
to make assertions on actual ServicePort. |
| Modifier and Type | Method and Description |
|---|---|
S |
hasAdditionalProperties(Map additionalProperties)
Verifies that the actual ServicePort's additionalProperties is equal to the given one.
|
S |
hasName(String name)
Verifies that the actual ServicePort's name is equal to the given one.
|
S |
hasNodePort(Integer nodePort)
Verifies that the actual ServicePort's nodePort is equal to the given one.
|
S |
hasPort(Integer port)
Verifies that the actual ServicePort's port is equal to the given one.
|
S |
hasProtocol(String protocol)
Verifies that the actual ServicePort's protocol is equal to the given one.
|
S |
hasTargetPort(io.fabric8.kubernetes.api.model.IntOrString targetPort)
Verifies that the actual ServicePort's targetPort 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 AbstractServicePortAssert(A actual, Class<S> selfType)
AbstractServicePortAssert to make assertions on actual ServicePort.actual - the ServicePort we want to make assertions on.public S hasAdditionalProperties(Map additionalProperties)
additionalProperties - the given additionalProperties to compare the actual ServicePort's additionalProperties to.AssertionError - - if the actual ServicePort's additionalProperties is not equal to the given one.public S hasName(String name)
name - the given name to compare the actual ServicePort's name to.AssertionError - - if the actual ServicePort's name is not equal to the given one.public S hasNodePort(Integer nodePort)
nodePort - the given nodePort to compare the actual ServicePort's nodePort to.AssertionError - - if the actual ServicePort's nodePort is not equal to the given one.public S hasPort(Integer port)
port - the given port to compare the actual ServicePort's port to.AssertionError - - if the actual ServicePort's port is not equal to the given one.public S hasProtocol(String protocol)
protocol - the given protocol to compare the actual ServicePort's protocol to.AssertionError - - if the actual ServicePort's protocol is not equal to the given one.public S hasTargetPort(io.fabric8.kubernetes.api.model.IntOrString targetPort)
targetPort - the given targetPort to compare the actual ServicePort's targetPort to.AssertionError - - if the actual ServicePort's targetPort is not equal to the given one.Copyright © 2011–2016 Red Hat. All rights reserved.