@Generated(value="assertj-assertions-generator") public abstract class AbstractMethodSpecAssert<S extends AbstractMethodSpecAssert<S,A>,A extends com.squareup.javapoet.MethodSpec> extends org.assertj.core.api.AbstractObjectAssert<S,A>
MethodSpec specific assertions - Generated by CustomAssertionGenerator.| Modifier | Constructor and Description |
|---|---|
protected |
AbstractMethodSpecAssert(A actual,
Class<S> selfType)
Creates a new
to make assertions on actual MethodSpec. |
| Modifier and Type | Method and Description |
|---|---|
S |
doesNotHaveAnnotations(com.squareup.javapoet.AnnotationSpec... annotations)
Verifies that the actual MethodSpec's annotations does not contain the given AnnotationSpec elements.
|
S |
doesNotHaveAnnotations(Collection<? extends com.squareup.javapoet.AnnotationSpec> annotations)
Verifies that the actual MethodSpec's annotations does not contain the given AnnotationSpec elements in Collection.
|
S |
doesNotHaveExceptions(Collection<? extends com.squareup.javapoet.TypeName> exceptions)
Verifies that the actual MethodSpec's exceptions does not contain the given TypeName elements in Collection.
|
S |
doesNotHaveExceptions(com.squareup.javapoet.TypeName... exceptions)
Verifies that the actual MethodSpec's exceptions does not contain the given TypeName elements.
|
S |
doesNotHaveModifiers(Collection<? extends Modifier> modifiers)
Verifies that the actual MethodSpec's modifiers does not contain the given javax.lang.model.element.Modifier elements in Collection.
|
S |
doesNotHaveModifiers(Modifier... modifiers)
Verifies that the actual MethodSpec's modifiers does not contain the given javax.lang.model.element.Modifier elements.
|
S |
doesNotHaveParameters(Collection<? extends com.squareup.javapoet.ParameterSpec> parameters)
Verifies that the actual MethodSpec's parameters does not contain the given ParameterSpec elements in Collection.
|
S |
doesNotHaveParameters(com.squareup.javapoet.ParameterSpec... parameters)
Verifies that the actual MethodSpec's parameters does not contain the given ParameterSpec elements.
|
S |
doesNotHaveTypeVariables(Collection<? extends com.squareup.javapoet.TypeVariableName> typeVariables)
Verifies that the actual MethodSpec's typeVariables does not contain the given TypeVariableName elements in Collection.
|
S |
doesNotHaveTypeVariables(com.squareup.javapoet.TypeVariableName... typeVariables)
Verifies that the actual MethodSpec's typeVariables does not contain the given TypeVariableName elements.
|
S |
hasAnnotations(com.squareup.javapoet.AnnotationSpec... annotations)
Verifies that the actual MethodSpec's annotations contains the given AnnotationSpec elements.
|
S |
hasAnnotations(Collection<? extends com.squareup.javapoet.AnnotationSpec> annotations)
Verifies that the actual MethodSpec's annotations contains the given AnnotationSpec elements in Collection.
|
S |
hasCode(com.squareup.javapoet.CodeBlock code)
Verifies that the actual MethodSpec's code is equal to the given one.
|
S |
hasDefaultValue(com.squareup.javapoet.CodeBlock defaultValue)
Verifies that the actual MethodSpec's defaultValue is equal to the given one.
|
S |
hasExceptions(Collection<? extends com.squareup.javapoet.TypeName> exceptions)
Verifies that the actual MethodSpec's exceptions contains the given TypeName elements in Collection.
|
S |
hasExceptions(com.squareup.javapoet.TypeName... exceptions)
Verifies that the actual MethodSpec's exceptions contains the given TypeName elements.
|
S |
hasJavadoc(com.squareup.javapoet.CodeBlock javadoc)
Verifies that the actual MethodSpec's javadoc is equal to the given one.
|
S |
hasModifiers(Collection<? extends Modifier> modifiers)
Verifies that the actual MethodSpec's modifiers contains the given javax.lang.model.element.Modifier elements in Collection.
|
S |
hasModifiers(Modifier... modifiers)
Verifies that the actual MethodSpec's modifiers contains the given javax.lang.model.element.Modifier elements.
|
S |
hasName(String name)
Verifies that the actual MethodSpec's name is equal to the given one.
|
S |
hasNoAnnotations()
Verifies that the actual MethodSpec has no annotations.
|
S |
hasNoExceptions()
Verifies that the actual MethodSpec has no exceptions.
|
S |
hasNoModifiers()
Verifies that the actual MethodSpec has no modifiers.
|
S |
hasNoParameters()
Verifies that the actual MethodSpec has no parameters.
|
S |
hasNoTypeVariables()
Verifies that the actual MethodSpec has no typeVariables.
|
S |
hasOnlyAnnotations(com.squareup.javapoet.AnnotationSpec... annotations)
Verifies that the actual MethodSpec'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 MethodSpec's annotations contains only the given AnnotationSpec elements in Collection and nothing else in whatever order.
|
S |
hasOnlyExceptions(Collection<? extends com.squareup.javapoet.TypeName> exceptions)
Verifies that the actual MethodSpec's exceptions contains only the given TypeName elements in Collection and nothing else in whatever order.
|
S |
hasOnlyExceptions(com.squareup.javapoet.TypeName... exceptions)
Verifies that the actual MethodSpec's exceptions contains only the given TypeName elements and nothing else in whatever order.
|
S |
hasOnlyModifiers(Collection<? extends Modifier> modifiers)
Verifies that the actual MethodSpec'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 MethodSpec's modifiers contains only the given javax.lang.model.element.Modifier elements and nothing else in whatever order.
|
S |
hasOnlyParameters(Collection<? extends com.squareup.javapoet.ParameterSpec> parameters)
Verifies that the actual MethodSpec's parameters contains only the given ParameterSpec elements in Collection and nothing else in whatever order.
|
S |
hasOnlyParameters(com.squareup.javapoet.ParameterSpec... parameters)
Verifies that the actual MethodSpec's parameters contains only the given ParameterSpec elements and nothing else in whatever order.
|
S |
hasOnlyTypeVariables(Collection<? extends com.squareup.javapoet.TypeVariableName> typeVariables)
Verifies that the actual MethodSpec's typeVariables contains only the given TypeVariableName elements in Collection and nothing else in whatever order.
|
S |
hasOnlyTypeVariables(com.squareup.javapoet.TypeVariableName... typeVariables)
Verifies that the actual MethodSpec's typeVariables contains only the given TypeVariableName elements and nothing else in whatever order.
|
S |
hasParameters(Collection<? extends com.squareup.javapoet.ParameterSpec> parameters)
Verifies that the actual MethodSpec's parameters contains the given ParameterSpec elements in Collection.
|
S |
hasParameters(com.squareup.javapoet.ParameterSpec... parameters)
Verifies that the actual MethodSpec's parameters contains the given ParameterSpec elements.
|
S |
hasReturnType(com.squareup.javapoet.TypeName returnType)
Verifies that the actual MethodSpec's returnType is equal to the given one.
|
S |
hasTypeVariables(Collection<? extends com.squareup.javapoet.TypeVariableName> typeVariables)
Verifies that the actual MethodSpec's typeVariables contains the given TypeVariableName elements in Collection.
|
S |
hasTypeVariables(com.squareup.javapoet.TypeVariableName... typeVariables)
Verifies that the actual MethodSpec's typeVariables contains the given TypeVariableName elements.
|
S |
isConstructor()
Verifies that the actual MethodSpec is constructor.
|
S |
isNotConstructor()
Verifies that the actual MethodSpec is not constructor.
|
S |
isNotVarargs()
Verifies that the actual MethodSpec is not varargs.
|
S |
isVarargs()
Verifies that the actual MethodSpec is varargs.
|
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 AbstractMethodSpecAssert(A actual, Class<S> selfType)
AbstractMethodSpecAssert to make assertions on actual MethodSpec.actual - the MethodSpec we want to make assertions on.public S isConstructor()
AssertionError - - if the actual MethodSpec is not constructor.public S isNotConstructor()
AssertionError - - if the actual MethodSpec is constructor.public S hasAnnotations(com.squareup.javapoet.AnnotationSpec... annotations)
annotations - the given elements that should be contained in actual MethodSpec's annotations.AssertionError - if the actual MethodSpec'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 MethodSpec's annotations.AssertionError - if the actual MethodSpec'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 MethodSpec's annotations.AssertionError - if the actual MethodSpec'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 MethodSpec's annotations.AssertionError - if the actual MethodSpec'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 MethodSpec's annotations.AssertionError - if the actual MethodSpec'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 MethodSpec's annotations.AssertionError - if the actual MethodSpec's annotations contains any given AnnotationSpec elements.public S hasNoAnnotations()
AssertionError - if the actual MethodSpec's annotations is not empty.public S hasCode(com.squareup.javapoet.CodeBlock code)
code - the given code to compare the actual MethodSpec's code to.AssertionError - - if the actual MethodSpec's code is not equal to the given one.public S hasDefaultValue(com.squareup.javapoet.CodeBlock defaultValue)
defaultValue - the given defaultValue to compare the actual MethodSpec's defaultValue to.AssertionError - - if the actual MethodSpec's defaultValue is not equal to the given one.public S hasExceptions(com.squareup.javapoet.TypeName... exceptions)
exceptions - the given elements that should be contained in actual MethodSpec's exceptions.AssertionError - if the actual MethodSpec's exceptions does not contain all given TypeName elements.public S hasExceptions(Collection<? extends com.squareup.javapoet.TypeName> exceptions)
exceptions - the given elements that should be contained in actual MethodSpec's exceptions.AssertionError - if the actual MethodSpec's exceptions does not contain all given TypeName elements.public S hasOnlyExceptions(com.squareup.javapoet.TypeName... exceptions)
exceptions - the given elements that should be contained in actual MethodSpec's exceptions.AssertionError - if the actual MethodSpec's exceptions does not contain all given TypeName elements.public S hasOnlyExceptions(Collection<? extends com.squareup.javapoet.TypeName> exceptions)
exceptions - the given elements that should be contained in actual MethodSpec's exceptions.AssertionError - if the actual MethodSpec's exceptions does not contain all given TypeName elements.public S doesNotHaveExceptions(com.squareup.javapoet.TypeName... exceptions)
exceptions - the given elements that should not be in actual MethodSpec's exceptions.AssertionError - if the actual MethodSpec's exceptions contains any given TypeName elements.public S doesNotHaveExceptions(Collection<? extends com.squareup.javapoet.TypeName> exceptions)
exceptions - the given elements that should not be in actual MethodSpec's exceptions.AssertionError - if the actual MethodSpec's exceptions contains any given TypeName elements.public S hasNoExceptions()
AssertionError - if the actual MethodSpec's exceptions is not empty.public S hasJavadoc(com.squareup.javapoet.CodeBlock javadoc)
javadoc - the given javadoc to compare the actual MethodSpec's javadoc to.AssertionError - - if the actual MethodSpec's javadoc is not equal to the given one.public S hasModifiers(Modifier... modifiers)
modifiers - the given elements that should be contained in actual MethodSpec's modifiers.AssertionError - if the actual MethodSpec'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 MethodSpec's modifiers.AssertionError - if the actual MethodSpec'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 MethodSpec's modifiers.AssertionError - if the actual MethodSpec'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 MethodSpec's modifiers.AssertionError - if the actual MethodSpec'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 MethodSpec's modifiers.AssertionError - if the actual MethodSpec'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 MethodSpec's modifiers.AssertionError - if the actual MethodSpec's modifiers contains any given javax.lang.model.element.Modifier elements.public S hasNoModifiers()
AssertionError - if the actual MethodSpec's modifiers is not empty.public S hasName(String name)
name - the given name to compare the actual MethodSpec's name to.AssertionError - - if the actual MethodSpec's name is not equal to the given one.public S hasParameters(com.squareup.javapoet.ParameterSpec... parameters)
parameters - the given elements that should be contained in actual MethodSpec's parameters.AssertionError - if the actual MethodSpec's parameters does not contain all given ParameterSpec elements.public S hasParameters(Collection<? extends com.squareup.javapoet.ParameterSpec> parameters)
parameters - the given elements that should be contained in actual MethodSpec's parameters.AssertionError - if the actual MethodSpec's parameters does not contain all given ParameterSpec elements.public S hasOnlyParameters(com.squareup.javapoet.ParameterSpec... parameters)
parameters - the given elements that should be contained in actual MethodSpec's parameters.AssertionError - if the actual MethodSpec's parameters does not contain all given ParameterSpec elements.public S hasOnlyParameters(Collection<? extends com.squareup.javapoet.ParameterSpec> parameters)
parameters - the given elements that should be contained in actual MethodSpec's parameters.AssertionError - if the actual MethodSpec's parameters does not contain all given ParameterSpec elements.public S doesNotHaveParameters(com.squareup.javapoet.ParameterSpec... parameters)
parameters - the given elements that should not be in actual MethodSpec's parameters.AssertionError - if the actual MethodSpec's parameters contains any given ParameterSpec elements.public S doesNotHaveParameters(Collection<? extends com.squareup.javapoet.ParameterSpec> parameters)
parameters - the given elements that should not be in actual MethodSpec's parameters.AssertionError - if the actual MethodSpec's parameters contains any given ParameterSpec elements.public S hasNoParameters()
AssertionError - if the actual MethodSpec's parameters is not empty.public S hasReturnType(com.squareup.javapoet.TypeName returnType)
returnType - the given returnType to compare the actual MethodSpec's returnType to.AssertionError - - if the actual MethodSpec's returnType is not equal to the given one.public S hasTypeVariables(com.squareup.javapoet.TypeVariableName... typeVariables)
typeVariables - the given elements that should be contained in actual MethodSpec's typeVariables.AssertionError - if the actual MethodSpec's typeVariables does not contain all given TypeVariableName elements.public S hasTypeVariables(Collection<? extends com.squareup.javapoet.TypeVariableName> typeVariables)
typeVariables - the given elements that should be contained in actual MethodSpec's typeVariables.AssertionError - if the actual MethodSpec's typeVariables does not contain all given TypeVariableName elements.public S hasOnlyTypeVariables(com.squareup.javapoet.TypeVariableName... typeVariables)
typeVariables - the given elements that should be contained in actual MethodSpec's typeVariables.AssertionError - if the actual MethodSpec's typeVariables does not contain all given TypeVariableName elements.public S hasOnlyTypeVariables(Collection<? extends com.squareup.javapoet.TypeVariableName> typeVariables)
typeVariables - the given elements that should be contained in actual MethodSpec's typeVariables.AssertionError - if the actual MethodSpec's typeVariables does not contain all given TypeVariableName elements.public S doesNotHaveTypeVariables(com.squareup.javapoet.TypeVariableName... typeVariables)
typeVariables - the given elements that should not be in actual MethodSpec's typeVariables.AssertionError - if the actual MethodSpec's typeVariables contains any given TypeVariableName elements.public S doesNotHaveTypeVariables(Collection<? extends com.squareup.javapoet.TypeVariableName> typeVariables)
typeVariables - the given elements that should not be in actual MethodSpec's typeVariables.AssertionError - if the actual MethodSpec's typeVariables contains any given TypeVariableName elements.public S hasNoTypeVariables()
AssertionError - if the actual MethodSpec's typeVariables is not empty.public S isVarargs()
AssertionError - - if the actual MethodSpec is not varargs.public S isNotVarargs()
AssertionError - - if the actual MethodSpec is varargs.Copyright © 2019 Mulesoft. All rights reserved.