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