public abstract class AbstractSubjectAccessReviewAssert<S extends AbstractSubjectAccessReviewAssert<S,A>,A extends io.fabric8.openshift.api.model.SubjectAccessReview>
extends org.assertj.core.api.AbstractAssert<S,A>
SubjectAccessReview
specific assertions - Generated by CustomAssertionGenerator.Modifier | Constructor and Description |
---|---|
protected |
AbstractSubjectAccessReviewAssert(A actual,
Class<S> selfType)
Creates a new
to make assertions on actual SubjectAccessReview. |
Modifier and Type | Method and Description |
---|---|
S |
doesNotHaveGroups(String... groups)
Verifies that the actual SubjectAccessReview's groups does not contain the given String elements.
|
S |
hasAdditionalProperties(Map additionalProperties)
Verifies that the actual SubjectAccessReview's additionalProperties is equal to the given one.
|
S |
hasApiVersion(io.fabric8.openshift.api.model.SubjectAccessReview.ApiVersion apiVersion)
Verifies that the actual SubjectAccessReview's apiVersion is equal to the given one.
|
S |
hasContent(io.fabric8.kubernetes.api.model.HasMetadata content)
Verifies that the actual SubjectAccessReview's content is equal to the given one.
|
S |
hasGroups(String... groups)
Verifies that the actual SubjectAccessReview's groups contains the given String elements.
|
S |
hasKind(String kind)
Verifies that the actual SubjectAccessReview's kind is equal to the given one.
|
S |
hasNamespace(String namespace)
Verifies that the actual SubjectAccessReview's namespace is equal to the given one.
|
S |
hasNoGroups()
Verifies that the actual SubjectAccessReview has no groups.
|
S |
hasOnlyGroups(String... groups)
Verifies that the actual SubjectAccessReview's groups contains only the given String elements and nothing else in whatever order.
|
S |
hasResource(String resource)
Verifies that the actual SubjectAccessReview's resource is equal to the given one.
|
S |
hasResourceName(String resourceName)
Verifies that the actual SubjectAccessReview's resourceName is equal to the given one.
|
S |
hasUser(String user)
Verifies that the actual SubjectAccessReview's user is equal to the given one.
|
S |
hasVerb(String verb)
Verifies that the actual SubjectAccessReview's verb 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 AbstractSubjectAccessReviewAssert(A actual, Class<S> selfType)
AbstractSubjectAccessReviewAssert
to make assertions on actual SubjectAccessReview.actual
- the SubjectAccessReview we want to make assertions on.public S hasAdditionalProperties(Map additionalProperties)
additionalProperties
- the given additionalProperties to compare the actual SubjectAccessReview's additionalProperties to.AssertionError
- - if the actual SubjectAccessReview's additionalProperties is not equal to the given one.public S hasApiVersion(io.fabric8.openshift.api.model.SubjectAccessReview.ApiVersion apiVersion)
apiVersion
- the given apiVersion to compare the actual SubjectAccessReview's apiVersion to.AssertionError
- - if the actual SubjectAccessReview's apiVersion is not equal to the given one.public S hasContent(io.fabric8.kubernetes.api.model.HasMetadata content)
content
- the given content to compare the actual SubjectAccessReview's content to.AssertionError
- - if the actual SubjectAccessReview's content is not equal to the given one.public S hasGroups(String... groups)
groups
- the given elements that should be contained in actual SubjectAccessReview's groups.AssertionError
- if the actual SubjectAccessReview's groups does not contain all given String elements.public S hasOnlyGroups(String... groups)
groups
- the given elements that should be contained in actual SubjectAccessReview's groups.AssertionError
- if the actual SubjectAccessReview's groups does not contain all given String elements.public S doesNotHaveGroups(String... groups)
groups
- the given elements that should not be in actual SubjectAccessReview's groups.AssertionError
- if the actual SubjectAccessReview's groups contains any given String elements.public S hasNoGroups()
AssertionError
- if the actual SubjectAccessReview's groups is not empty.public S hasKind(String kind)
kind
- the given kind to compare the actual SubjectAccessReview's kind to.AssertionError
- - if the actual SubjectAccessReview's kind is not equal to the given one.public S hasNamespace(String namespace)
namespace
- the given namespace to compare the actual SubjectAccessReview's namespace to.AssertionError
- - if the actual SubjectAccessReview's namespace is not equal to the given one.public S hasResource(String resource)
resource
- the given resource to compare the actual SubjectAccessReview's resource to.AssertionError
- - if the actual SubjectAccessReview's resource is not equal to the given one.public S hasResourceName(String resourceName)
resourceName
- the given resourceName to compare the actual SubjectAccessReview's resourceName to.AssertionError
- - if the actual SubjectAccessReview's resourceName is not equal to the given one.public S hasUser(String user)
user
- the given user to compare the actual SubjectAccessReview's user to.AssertionError
- - if the actual SubjectAccessReview's user is not equal to the given one.public S hasVerb(String verb)
verb
- the given verb to compare the actual SubjectAccessReview's verb to.AssertionError
- - if the actual SubjectAccessReview's verb is not equal to the given one.Copyright © 2011–2016 Red Hat. All rights reserved.