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