public abstract class AbstractContextAssert<S extends AbstractContextAssert<S,A>,A extends io.fabric8.kubernetes.api.model.Context>
extends org.assertj.core.api.AbstractAssert<S,A>
Context
specific assertions - Generated by CustomAssertionGenerator.Modifier | Constructor and Description |
---|---|
protected |
AbstractContextAssert(A actual,
Class<S> selfType)
Creates a new
to make assertions on actual Context. |
Modifier and Type | Method and Description |
---|---|
S |
hasAdditionalProperties(Map additionalProperties)
Verifies that the actual Context's additionalProperties is equal to the given one.
|
S |
hasCluster(String cluster)
Verifies that the actual Context's cluster is equal to the given one.
|
S |
hasExtensions(io.fabric8.kubernetes.api.model.NamedExtension... extensions)
Verifies that the actual Context's extensions contains the given NamedExtension elements.
|
S |
hasNamespace(String namespace)
Verifies that the actual Context's namespace is equal to the given one.
|
S |
hasNoExtensions()
Verifies that the actual Context has no extensions.
|
S |
hasUser(String user)
Verifies that the actual Context's user 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 AbstractContextAssert(A actual, Class<S> selfType)
AbstractContextAssert
to make assertions on actual Context.actual
- the Context we want to make assertions on.public S hasAdditionalProperties(Map additionalProperties)
additionalProperties
- the given additionalProperties to compare the actual Context's additionalProperties to.AssertionError
- - if the actual Context's additionalProperties is not equal to the given one.public S hasCluster(String cluster)
cluster
- the given cluster to compare the actual Context's cluster to.AssertionError
- - if the actual Context's cluster is not equal to the given one.public S hasExtensions(io.fabric8.kubernetes.api.model.NamedExtension... extensions)
extensions
- the given elements that should be contained in actual Context's extensions.AssertionError
- if the actual Context's extensions does not contain all given NamedExtension elements.public S hasNoExtensions()
AssertionError
- if the actual Context's extensions is not empty.public S hasNamespace(String namespace)
namespace
- the given namespace to compare the actual Context's namespace to.AssertionError
- - if the actual Context's namespace is not equal to the given one.public S hasUser(String user)
user
- the given user to compare the actual Context's user to.AssertionError
- - if the actual Context's user is not equal to the given one.Copyright © 2011–2015 Red Hat. All rights reserved.