@Generated(value="assertj-assertions-generator") public abstract class AbstractFieldSpecAssert<S extends AbstractFieldSpecAssert<S,A>,A extends com.squareup.javapoet.FieldSpec> extends org.assertj.core.api.AbstractObjectAssert<S,A>
FieldSpec specific assertions - Generated by CustomAssertionGenerator.| Modifier | Constructor and Description |
|---|---|
protected |
AbstractFieldSpecAssert(A actual,
Class<S> selfType)
Creates a new
to make assertions on actual FieldSpec. |
| Modifier and Type | Method and Description |
|---|---|
S |
doesNotHaveAnnotations(com.squareup.javapoet.AnnotationSpec... annotations)
Verifies that the actual FieldSpec's annotations does not contain the given AnnotationSpec elements.
|
S |
doesNotHaveAnnotations(Collection<? extends com.squareup.javapoet.AnnotationSpec> annotations)
Verifies that the actual FieldSpec's annotations does not contain the given AnnotationSpec elements in Collection.
|
S |
doesNotHaveModifiers(Collection<? extends Modifier> modifiers)
Verifies that the actual FieldSpec's modifiers does not contain the given javax.lang.model.element.Modifier elements in Collection.
|
S |
doesNotHaveModifiers(Modifier... modifiers)
Verifies that the actual FieldSpec's modifiers does not contain the given javax.lang.model.element.Modifier elements.
|
S |
hasAnnotations(com.squareup.javapoet.AnnotationSpec... annotations)
Verifies that the actual FieldSpec's annotations contains the given AnnotationSpec elements.
|
S |
hasAnnotations(Collection<? extends com.squareup.javapoet.AnnotationSpec> annotations)
Verifies that the actual FieldSpec's annotations contains the given AnnotationSpec elements in Collection.
|
S |
hasInitializer(com.squareup.javapoet.CodeBlock initializer)
Verifies that the actual FieldSpec's initializer is equal to the given one.
|
S |
hasJavadoc(com.squareup.javapoet.CodeBlock javadoc)
Verifies that the actual FieldSpec's javadoc is equal to the given one.
|
S |
hasModifiers(Collection<? extends Modifier> modifiers)
Verifies that the actual FieldSpec's modifiers contains the given javax.lang.model.element.Modifier elements in Collection.
|
S |
hasModifiers(Modifier... modifiers)
Verifies that the actual FieldSpec's modifiers contains the given javax.lang.model.element.Modifier elements.
|
S |
hasName(String name)
Verifies that the actual FieldSpec's name is equal to the given one.
|
S |
hasNoAnnotations()
Verifies that the actual FieldSpec has no annotations.
|
S |
hasNoModifiers()
Verifies that the actual FieldSpec has no modifiers.
|
S |
hasOnlyAnnotations(com.squareup.javapoet.AnnotationSpec... annotations)
Verifies that the actual FieldSpec's annotations contains only the given AnnotationSpec elements and nothing else in whatever order.
|
S |
hasOnlyAnnotations(Collection<? extends com.squareup.javapoet.AnnotationSpec> annotations)
Verifies that the actual FieldSpec's annotations contains only the given AnnotationSpec elements in Collection and nothing else in whatever order.
|
S |
hasOnlyModifiers(Collection<? extends Modifier> modifiers)
Verifies that the actual FieldSpec's modifiers contains only the given javax.lang.model.element.Modifier elements in Collection and nothing else in whatever order.
|
S |
hasOnlyModifiers(Modifier... modifiers)
Verifies that the actual FieldSpec's modifiers contains only the given javax.lang.model.element.Modifier elements and nothing else in whatever order.
|
S |
hasType(com.squareup.javapoet.TypeName type)
Verifies that the actual FieldSpec's type is equal to the given one.
|
as, as, extracting, hasFieldOrProperty, hasFieldOrPropertyWithValue, hasNoNullFieldsOrProperties, hasNoNullFieldsOrPropertiesExcept, isEqualToComparingFieldByField, isEqualToComparingFieldByFieldRecursively, isEqualToComparingOnlyGivenFields, isEqualToIgnoringGivenFields, isEqualToIgnoringNullFields, usingComparatorForFields, usingComparatorForTypeasList, asString, describedAs, describedAs, descriptionText, doesNotHave, doesNotHaveSameClassAs, equals, failWithMessage, getWritableAssertionInfo, has, hashCode, hasSameClassAs, hasSameHashCodeAs, hasToString, inBinary, inHexadecimal, is, isEqualTo, isExactlyInstanceOf, isIn, isIn, isInstanceOf, isInstanceOfAny, isNot, isNotEqualTo, isNotExactlyInstanceOf, isNotIn, isNotIn, isNotInstanceOf, isNotInstanceOfAny, isNotNull, isNotOfAnyClassIn, isNotSameAs, isNull, isOfAnyClassIn, isSameAs, overridingErrorMessage, setCustomRepresentation, throwAssertionError, usingComparator, usingComparator, usingDefaultComparator, withFailMessage, withRepresentation, withThreadDumpOnErrorprotected AbstractFieldSpecAssert(A actual, Class<S> selfType)
AbstractFieldSpecAssert to make assertions on actual FieldSpec.actual - the FieldSpec we want to make assertions on.public S hasAnnotations(com.squareup.javapoet.AnnotationSpec... annotations)
annotations - the given elements that should be contained in actual FieldSpec's annotations.AssertionError - if the actual FieldSpec's annotations does not contain all given AnnotationSpec elements.public S hasAnnotations(Collection<? extends com.squareup.javapoet.AnnotationSpec> annotations)
annotations - the given elements that should be contained in actual FieldSpec's annotations.AssertionError - if the actual FieldSpec's annotations does not contain all given AnnotationSpec elements.public S hasOnlyAnnotations(com.squareup.javapoet.AnnotationSpec... annotations)
annotations - the given elements that should be contained in actual FieldSpec's annotations.AssertionError - if the actual FieldSpec's annotations does not contain all given AnnotationSpec elements.public S hasOnlyAnnotations(Collection<? extends com.squareup.javapoet.AnnotationSpec> annotations)
annotations - the given elements that should be contained in actual FieldSpec's annotations.AssertionError - if the actual FieldSpec's annotations does not contain all given AnnotationSpec elements.public S doesNotHaveAnnotations(com.squareup.javapoet.AnnotationSpec... annotations)
annotations - the given elements that should not be in actual FieldSpec's annotations.AssertionError - if the actual FieldSpec's annotations contains any given AnnotationSpec elements.public S doesNotHaveAnnotations(Collection<? extends com.squareup.javapoet.AnnotationSpec> annotations)
annotations - the given elements that should not be in actual FieldSpec's annotations.AssertionError - if the actual FieldSpec's annotations contains any given AnnotationSpec elements.public S hasNoAnnotations()
AssertionError - if the actual FieldSpec's annotations is not empty.public S hasInitializer(com.squareup.javapoet.CodeBlock initializer)
initializer - the given initializer to compare the actual FieldSpec's initializer to.AssertionError - - if the actual FieldSpec's initializer is not equal to the given one.public S hasJavadoc(com.squareup.javapoet.CodeBlock javadoc)
javadoc - the given javadoc to compare the actual FieldSpec's javadoc to.AssertionError - - if the actual FieldSpec's javadoc is not equal to the given one.public S hasModifiers(Modifier... modifiers)
modifiers - the given elements that should be contained in actual FieldSpec's modifiers.AssertionError - if the actual FieldSpec's modifiers does not contain all given javax.lang.model.element.Modifier elements.public S hasModifiers(Collection<? extends Modifier> modifiers)
modifiers - the given elements that should be contained in actual FieldSpec's modifiers.AssertionError - if the actual FieldSpec's modifiers does not contain all given javax.lang.model.element.Modifier elements.public S hasOnlyModifiers(Modifier... modifiers)
modifiers - the given elements that should be contained in actual FieldSpec's modifiers.AssertionError - if the actual FieldSpec's modifiers does not contain all given javax.lang.model.element.Modifier elements.public S hasOnlyModifiers(Collection<? extends Modifier> modifiers)
modifiers - the given elements that should be contained in actual FieldSpec's modifiers.AssertionError - if the actual FieldSpec's modifiers does not contain all given javax.lang.model.element.Modifier elements.public S doesNotHaveModifiers(Modifier... modifiers)
modifiers - the given elements that should not be in actual FieldSpec's modifiers.AssertionError - if the actual FieldSpec's modifiers contains any given javax.lang.model.element.Modifier elements.public S doesNotHaveModifiers(Collection<? extends Modifier> modifiers)
modifiers - the given elements that should not be in actual FieldSpec's modifiers.AssertionError - if the actual FieldSpec's modifiers contains any given javax.lang.model.element.Modifier elements.public S hasNoModifiers()
AssertionError - if the actual FieldSpec's modifiers is not empty.public S hasName(String name)
name - the given name to compare the actual FieldSpec's name to.AssertionError - - if the actual FieldSpec's name is not equal to the given one.public S hasType(com.squareup.javapoet.TypeName type)
type - the given type to compare the actual FieldSpec's type to.AssertionError - - if the actual FieldSpec's type is not equal to the given one.Copyright © 2019 Mulesoft. All rights reserved.