public abstract class AbstractPolicyFluentAssert<S extends AbstractPolicyFluentAssert<S,A>,A extends io.fabric8.openshift.api.model.PolicyFluent>
extends org.assertj.core.api.AbstractAssert<S,A>
PolicyFluent
specific assertions - Generated by CustomAssertionGenerator.Modifier | Constructor and Description |
---|---|
protected |
AbstractPolicyFluentAssert(A actual,
Class<S> selfType)
Creates a new
to make assertions on actual PolicyFluent. |
Modifier and Type | Method and Description |
---|---|
S |
doesNotHaveRoles(io.fabric8.openshift.api.model.NamedRole... roles)
Verifies that the actual PolicyFluent's roles does not contain the given NamedRole elements.
|
S |
hasAdditionalProperties(Map additionalProperties)
Verifies that the actual PolicyFluent's additionalProperties is equal to the given one.
|
S |
hasApiVersion(io.fabric8.openshift.api.model.Policy.ApiVersion apiVersion)
Verifies that the actual PolicyFluent's apiVersion is equal to the given one.
|
S |
hasKind(String kind)
Verifies that the actual PolicyFluent's kind is equal to the given one.
|
S |
hasLastModified(String lastModified)
Verifies that the actual PolicyFluent's lastModified is equal to the given one.
|
S |
hasMetadata(io.fabric8.kubernetes.api.model.ObjectMeta metadata)
Verifies that the actual PolicyFluent's metadata is equal to the given one.
|
S |
hasNoRoles()
Verifies that the actual PolicyFluent has no roles.
|
S |
hasOnlyRoles(io.fabric8.openshift.api.model.NamedRole... roles)
Verifies that the actual PolicyFluent's roles contains only the given NamedRole elements and nothing else in whatever order.
|
S |
hasRoles(io.fabric8.openshift.api.model.NamedRole... roles)
Verifies that the actual PolicyFluent's roles contains the given NamedRole 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 AbstractPolicyFluentAssert(A actual, Class<S> selfType)
AbstractPolicyFluentAssert
to make assertions on actual PolicyFluent.actual
- the PolicyFluent we want to make assertions on.public S hasAdditionalProperties(Map additionalProperties)
additionalProperties
- the given additionalProperties to compare the actual PolicyFluent's additionalProperties to.AssertionError
- - if the actual PolicyFluent's additionalProperties is not equal to the given one.public S hasApiVersion(io.fabric8.openshift.api.model.Policy.ApiVersion apiVersion)
apiVersion
- the given apiVersion to compare the actual PolicyFluent's apiVersion to.AssertionError
- - if the actual PolicyFluent's apiVersion is not equal to the given one.public S hasKind(String kind)
kind
- the given kind to compare the actual PolicyFluent's kind to.AssertionError
- - if the actual PolicyFluent's kind is not equal to the given one.public S hasLastModified(String lastModified)
lastModified
- the given lastModified to compare the actual PolicyFluent's lastModified to.AssertionError
- - if the actual PolicyFluent's lastModified is not equal to the given one.public S hasMetadata(io.fabric8.kubernetes.api.model.ObjectMeta metadata)
metadata
- the given metadata to compare the actual PolicyFluent's metadata to.AssertionError
- - if the actual PolicyFluent's metadata is not equal to the given one.public S hasRoles(io.fabric8.openshift.api.model.NamedRole... roles)
roles
- the given elements that should be contained in actual PolicyFluent's roles.AssertionError
- if the actual PolicyFluent's roles does not contain all given NamedRole elements.public S hasOnlyRoles(io.fabric8.openshift.api.model.NamedRole... roles)
roles
- the given elements that should be contained in actual PolicyFluent's roles.AssertionError
- if the actual PolicyFluent's roles does not contain all given NamedRole elements.public S doesNotHaveRoles(io.fabric8.openshift.api.model.NamedRole... roles)
roles
- the given elements that should not be in actual PolicyFluent's roles.AssertionError
- if the actual PolicyFluent's roles contains any given NamedRole elements.public S hasNoRoles()
AssertionError
- if the actual PolicyFluent's roles is not empty.Copyright © 2011–2016 Red Hat. All rights reserved.