Class AbstractJvmModuleAssert<SELF extends AbstractJvmModuleAssert<SELF>>
java.lang.Object
org.assertj.core.api.AbstractAssert<SELF,ACTUAL>
org.assertj.core.api.AbstractObjectAssert<SELF,ACTUAL>
org.assertj.core.api.AbstractComparableAssert<SELF,Path>
org.assertj.core.api.AbstractPathAssert<SELF>
io.spring.initializr.generator.test.project.AbstractProjectAssert<SELF>
io.spring.initializr.generator.test.project.AbstractJvmModuleAssert<SELF>
- Type Parameters:
SELF- the type of the concrete assert implementations
- All Implemented Interfaces:
org.assertj.core.api.Assert<SELF,,Path> org.assertj.core.api.ComparableAssert<SELF,,Path> org.assertj.core.api.Descriptable<SELF>,org.assertj.core.api.ExtensionPoints<SELF,Path>
- Direct Known Subclasses:
JvmModuleAssert
public abstract class AbstractJvmModuleAssert<SELF extends AbstractJvmModuleAssert<SELF>>
extends AbstractProjectAssert<SELF>
Base class for JVM module assertions.
- Author:
- Stephane Nicoll
-
Field Summary
Fields inherited from class org.assertj.core.api.AbstractPathAssert
pathsFields inherited from class org.assertj.core.api.AbstractAssert
actual, info, myself, objects, throwUnsupportedExceptionOnEquals -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractJvmModuleAssert(Path projectDirectory, Language language, Class<?> selfType) -
Method Summary
Modifier and TypeMethodDescriptionhasMainPackage(String packageName) Assert that the main source defines the specified package.hasMainResource(String resourcePath) Assert that the main resources defines the specified resource.hasMainSource(String packageName, String name) Assert that the main source defines the specified type.hasTestPackage(String packageName) Assert that the test source defines the specified package.hasTestSource(String packageName, String name) Assert that the test source defines the specified type.mainSource(String packageName, String name) Assert that the main source defines the specified type and return anassertfor it, to allow chaining of text-specific assertions from this call.testSource(String packageName, String name) Assert that the test source defines the specified type and return anassertfor it, to allow chaining of text-specific assertions from this call.Methods inherited from class io.spring.initializr.generator.test.project.AbstractProjectAssert
containsDirectories, containsFiles, doesNotContainDirectories, doesNotContainFiles, file, filePaths, textFileMethods inherited from class org.assertj.core.api.AbstractPathAssert
binaryContent, content, content, doesNotExist, endsWith, endsWithRaw, exists, existsNoFollowLinks, hasBinaryContent, hasContent, hasDigest, hasDigest, hasDigest, hasDigest, hasExtension, hasFileName, hasFileSystem, hasNoExtension, hasNoParent, hasNoParentRaw, hasParent, hasParentRaw, hasSameBinaryContentAs, hasSameContentAs, hasSameContentAs, hasSameFileSystemAs, hasSameTextualContentAs, hasSameTextualContentAs, hasSize, isAbsolute, isCanonical, isDirectory, isDirectoryContaining, isDirectoryContaining, isDirectoryNotContaining, isDirectoryNotContaining, isDirectoryRecursivelyContaining, isDirectoryRecursivelyContaining, isEmptyDirectory, isEmptyFile, isExecutable, isNormalized, isNotEmptyDirectory, isNotEmptyFile, isReadable, isRegularFile, isRelative, isSymbolicLink, isWritable, startsWith, startsWithRaw, usingCharset, usingCharsetMethods inherited from class org.assertj.core.api.AbstractComparableAssert
inBinary, inHexadecimal, isBetween, isEqualByComparingTo, isGreaterThan, isGreaterThanOrEqualTo, isLessThan, isLessThanOrEqualTo, isNotEqualByComparingTo, isStrictlyBetween, usingComparator, usingComparator, usingDefaultComparatorMethods inherited from class org.assertj.core.api.AbstractObjectAssert
as, as, doesNotReturn, extracting, extracting, extracting, extracting, extracting, extracting, extractingForProxy, getComparatorsByType, hasAllNullFieldsOrProperties, hasAllNullFieldsOrPropertiesExcept, hasFieldOrProperty, hasFieldOrPropertyWithValue, hasNoNullFieldsOrProperties, hasNoNullFieldsOrPropertiesExcept, hasOnlyFields, isEqualToComparingFieldByField, isEqualToComparingFieldByFieldRecursively, isEqualToComparingOnlyGivenFields, isEqualToIgnoringGivenFields, isEqualToIgnoringNullFields, newObjectAssert, returns, usingComparatorForFields, usingComparatorForType, usingRecursiveAssertion, usingRecursiveAssertion, usingRecursiveComparison, usingRecursiveComparisonMethods inherited from class org.assertj.core.api.AbstractAssert
areEqual, asInstanceOf, asList, assertionError, asString, describedAs, descriptionText, doesNotHave, doesNotHaveSameClassAs, doesNotHaveSameHashCodeAs, doesNotHaveToString, doesNotHaveToString, equals, extracting, extracting, failure, failureWithActualExpected, failWithActualExpectedAndMessage, failWithMessage, getWritableAssertionInfo, has, hashCode, hasSameClassAs, hasSameHashCodeAs, hasToString, hasToString, is, isElementOfCustomAssert, isEqualTo, isExactlyInstanceOf, isIn, isIn, isInstanceOf, isInstanceOfAny, isInstanceOfSatisfying, isNot, isNotEqualTo, isNotExactlyInstanceOf, isNotIn, isNotIn, isNotInstanceOf, isNotInstanceOfAny, isNotNull, isNotOfAnyClassIn, isNotSameAs, isNull, isOfAnyClassIn, isSameAs, matches, matches, newListAssertInstance, overridingErrorMessage, overridingErrorMessage, satisfies, satisfies, satisfies, satisfiesAnyOf, satisfiesAnyOf, satisfiesAnyOfForProxy, satisfiesForProxy, setCustomRepresentation, setDescriptionConsumer, setPrintAssertionsDescription, throwAssertionError, withFailMessage, withFailMessage, withRepresentation, withThreadDumpOnErrorMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.assertj.core.api.Descriptable
as, describedAs, describedAs
-
Constructor Details
-
AbstractJvmModuleAssert
-
-
Method Details
-
hasMainPackage
Assert that the main source defines the specified package.- Parameters:
packageName- the name of the package- Returns:
thisassertion object
-
hasMainSource
Assert that the main source defines the specified type.- Parameters:
packageName- the name of a packagename- the name of the type- Returns:
thisassertion object
-
mainSource
Assert that the main source defines the specified type and return anassertfor it, to allow chaining of text-specific assertions from this call.- Parameters:
packageName- the name of a packagename- the name of the type- Returns:
- a
TextAssertfor the specified source
-
hasMainResource
Assert that the main resources defines the specified resource.- Parameters:
resourcePath- the path of a resource relative to theresourcesdirectory- Returns:
thisassertion object
-
hasTestPackage
Assert that the test source defines the specified package.- Parameters:
packageName- the name of the package- Returns:
thisassertion object
-
hasTestSource
Assert that the test source defines the specified type.- Parameters:
packageName- the name of a packagename- the name of the type- Returns:
thisassertion object
-
testSource
Assert that the test source defines the specified type and return anassertfor it, to allow chaining of text-specific assertions from this call.- Parameters:
packageName- the name of a packagename- the name of the type- Returns:
- a
TextAssertfor the specified source
-