@Generated(value="assertj-assertions-generator") public abstract class AbstractJavaFileAssert<S extends AbstractJavaFileAssert<S,A>,A extends com.squareup.javapoet.JavaFile> extends org.assertj.core.api.AbstractObjectAssert<S,A>
JavaFile specific assertions - Generated by CustomAssertionGenerator.| Modifier | Constructor and Description |
|---|---|
protected |
AbstractJavaFileAssert(A actual,
Class<S> selfType)
Creates a new
to make assertions on actual JavaFile. |
| Modifier and Type | Method and Description |
|---|---|
S |
hasFileComment(com.squareup.javapoet.CodeBlock fileComment)
Verifies that the actual JavaFile's fileComment is equal to the given one.
|
S |
hasPackageName(String packageName)
Verifies that the actual JavaFile's packageName is equal to the given one.
|
S |
hasTypeSpec(com.squareup.javapoet.TypeSpec typeSpec)
Verifies that the actual JavaFile's typeSpec is equal to the given one.
|
S |
isNotSkipJavaLangImports()
Verifies that the actual JavaFile is not skipJavaLangImports.
|
S |
isSkipJavaLangImports()
Verifies that the actual JavaFile is skipJavaLangImports.
|
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 AbstractJavaFileAssert(A actual, Class<S> selfType)
AbstractJavaFileAssert to make assertions on actual JavaFile.actual - the JavaFile we want to make assertions on.public S hasFileComment(com.squareup.javapoet.CodeBlock fileComment)
fileComment - the given fileComment to compare the actual JavaFile's fileComment to.AssertionError - - if the actual JavaFile's fileComment is not equal to the given one.public S hasPackageName(String packageName)
packageName - the given packageName to compare the actual JavaFile's packageName to.AssertionError - - if the actual JavaFile's packageName is not equal to the given one.public S isSkipJavaLangImports()
AssertionError - - if the actual JavaFile is not skipJavaLangImports.public S isNotSkipJavaLangImports()
AssertionError - - if the actual JavaFile is skipJavaLangImports.public S hasTypeSpec(com.squareup.javapoet.TypeSpec typeSpec)
typeSpec - the given typeSpec to compare the actual JavaFile's typeSpec to.AssertionError - - if the actual JavaFile's typeSpec is not equal to the given one.Copyright © 2019 Mulesoft. All rights reserved.