public abstract class AbstractTemplateAssert<S extends AbstractTemplateAssert<S,A>,A extends io.fabric8.openshift.api.model.Template>
extends org.assertj.core.api.AbstractAssert<S,A>
Template
specific assertions - Generated by CustomAssertionGenerator.Modifier | Constructor and Description |
---|---|
protected |
AbstractTemplateAssert(A actual,
Class<S> selfType)
Creates a new
to make assertions on actual Template. |
Modifier and Type | Method and Description |
---|---|
S |
doesNotHaveObjects(io.fabric8.kubernetes.api.model.HasMetadata... objects)
Verifies that the actual Template's objects does not contain the given io.fabric8.kubernetes.api.model.HasMetadata elements.
|
S |
doesNotHaveParameters(io.fabric8.openshift.api.model.Parameter... parameters)
Verifies that the actual Template's parameters does not contain the given Parameter elements.
|
S |
hasAdditionalProperties(Map additionalProperties)
Verifies that the actual Template's additionalProperties is equal to the given one.
|
S |
hasApiVersion(io.fabric8.openshift.api.model.Template.ApiVersion apiVersion)
Verifies that the actual Template's apiVersion is equal to the given one.
|
S |
hasKind(String kind)
Verifies that the actual Template's kind is equal to the given one.
|
S |
hasLabels(Map labels)
Verifies that the actual Template's labels is equal to the given one.
|
S |
hasMetadata(io.fabric8.kubernetes.api.model.ObjectMeta metadata)
Verifies that the actual Template's metadata is equal to the given one.
|
S |
hasNoObjects()
Verifies that the actual Template has no objects.
|
S |
hasNoParameters()
Verifies that the actual Template has no parameters.
|
S |
hasObjects(io.fabric8.kubernetes.api.model.HasMetadata... objects)
Verifies that the actual Template's objects contains the given io.fabric8.kubernetes.api.model.HasMetadata elements.
|
S |
hasOnlyObjects(io.fabric8.kubernetes.api.model.HasMetadata... objects)
Verifies that the actual Template's objects contains only the given io.fabric8.kubernetes.api.model.HasMetadata elements and nothing else in whatever order.
|
S |
hasOnlyParameters(io.fabric8.openshift.api.model.Parameter... parameters)
Verifies that the actual Template's parameters contains only the given Parameter elements and nothing else in whatever order.
|
S |
hasParameters(io.fabric8.openshift.api.model.Parameter... parameters)
Verifies that the actual Template's parameters contains the given Parameter 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 AbstractTemplateAssert(A actual, Class<S> selfType)
AbstractTemplateAssert
to make assertions on actual Template.actual
- the Template we want to make assertions on.public S hasAdditionalProperties(Map additionalProperties)
additionalProperties
- the given additionalProperties to compare the actual Template's additionalProperties to.AssertionError
- - if the actual Template's additionalProperties is not equal to the given one.public S hasApiVersion(io.fabric8.openshift.api.model.Template.ApiVersion apiVersion)
apiVersion
- the given apiVersion to compare the actual Template's apiVersion to.AssertionError
- - if the actual Template's apiVersion is not equal to the given one.public S hasKind(String kind)
kind
- the given kind to compare the actual Template's kind to.AssertionError
- - if the actual Template's kind is not equal to the given one.public S hasLabels(Map labels)
labels
- the given labels to compare the actual Template's labels to.AssertionError
- - if the actual Template's labels 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 Template's metadata to.AssertionError
- - if the actual Template's metadata is not equal to the given one.public S hasObjects(io.fabric8.kubernetes.api.model.HasMetadata... objects)
objects
- the given elements that should be contained in actual Template's objects.AssertionError
- if the actual Template's objects does not contain all given io.fabric8.kubernetes.api.model.HasMetadata elements.public S hasOnlyObjects(io.fabric8.kubernetes.api.model.HasMetadata... objects)
objects
- the given elements that should be contained in actual Template's objects.AssertionError
- if the actual Template's objects does not contain all given io.fabric8.kubernetes.api.model.HasMetadata elements.public S doesNotHaveObjects(io.fabric8.kubernetes.api.model.HasMetadata... objects)
objects
- the given elements that should not be in actual Template's objects.AssertionError
- if the actual Template's objects contains any given io.fabric8.kubernetes.api.model.HasMetadata elements.public S hasNoObjects()
AssertionError
- if the actual Template's objects is not empty.public S hasParameters(io.fabric8.openshift.api.model.Parameter... parameters)
parameters
- the given elements that should be contained in actual Template's parameters.AssertionError
- if the actual Template's parameters does not contain all given Parameter elements.public S hasOnlyParameters(io.fabric8.openshift.api.model.Parameter... parameters)
parameters
- the given elements that should be contained in actual Template's parameters.AssertionError
- if the actual Template's parameters does not contain all given Parameter elements.public S doesNotHaveParameters(io.fabric8.openshift.api.model.Parameter... parameters)
parameters
- the given elements that should not be in actual Template's parameters.AssertionError
- if the actual Template's parameters contains any given Parameter elements.public S hasNoParameters()
AssertionError
- if the actual Template's parameters is not empty.Copyright © 2011–2015 Red Hat. All rights reserved.