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 |
---|---|
org.assertj.core.api.MapAssert |
additionalProperties()
Navigates to the property additionalProperties so that assertions can be done on it
|
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.
|
org.assertj.core.api.StringAssert |
name()
Navigates to the property name so that assertions can be done on it
|
org.assertj.core.api.StringAssert |
protocol()
Navigates to the property protocol so that assertions can be done on it
|
IntOrStringAssert |
targetPort()
Navigates to the property targetPort so that assertions can be done on it
|
as, as, asList, asString, describedAs, describedAs, descriptionText, doesNotHave, doesNotHaveSameClassAs, equals, failWithMessage, getWritableAssertionInfo, has, hashCode, hasSameClassAs, hasToString, 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, withFailMessage, withThreadDumpOnError
protected AbstractServicePortAssert(A actual, Class<S> selfType)
AbstractServicePortAssert
to make assertions on actual ServicePort.actual
- the ServicePort we want to make assertions on.public org.assertj.core.api.MapAssert additionalProperties()
public org.assertj.core.api.StringAssert name()
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 org.assertj.core.api.StringAssert protocol()
public IntOrStringAssert targetPort()
Copyright © 2011–2017 Red Hat. All rights reserved.