Class MavenBuildAssert
java.lang.Object
org.assertj.core.api.AbstractAssert<SELF,ACTUAL>
org.assertj.core.api.AbstractCharSequenceAssert<SELF,String>
org.assertj.core.api.AbstractStringAssert<SELF>
io.spring.initializr.generator.test.io.AbstractTextAssert<MavenBuildAssert>
io.spring.initializr.generator.test.buildsystem.maven.MavenBuildAssert
- All Implemented Interfaces:
org.assertj.core.api.Assert<MavenBuildAssert,,String> org.assertj.core.api.Descriptable<MavenBuildAssert>,org.assertj.core.api.EnumerableAssert<MavenBuildAssert,,Character> org.assertj.core.api.ExtensionPoints<MavenBuildAssert,String>
Assertions for a Maven build.
- Author:
- Stephane Nicoll
-
Field Summary
Fields inherited from class org.assertj.core.api.AbstractAssert
actual, info, myself, objects, throwUnsupportedExceptionOnEquals -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoesNotHaveBom(String groupId, String artifactId) Assert thatpom.xmldoes not define the specified bom.doesNotHaveDependency(String groupId, String artifactId) Assert thatpom.xmldoes not define a dependency with the specifiedgroupIdandartifactId.doesNotHaveNode(String path) Assertpom.xmldoes not define a node with the specifiedpath.Assertpom.xmldoes not define a profile with the specifiedid.doesNotHaveProperty(String name) Assertpom.xmldoes not define the specified property.hasArtifactId(String artifactId) Assertpom.xmluses the specifiedartifactId.Assertpom.xmldefines the specified bom.hasBomsSize(int size) Assertpom.xmldefines the specified number of boms.hasDependenciesSize(int size) Assertpom.xmldefines the specified number of dependencies.hasDependency(Dependency dependency) Assertpom.xmldefines the specified dependency.hasDependency(String groupId, String artifactId) Assertpom.xmldefines the specified dependency with no version and compile scope.hasDependency(String groupId, String artifactId, String version) Assertpom.xmldefines the specified dependency with compile scope.hasDependency(String groupId, String artifactId, String version, String scope) Assertpom.xmldefines the specified dependency with the specified scope.hasDescription(String description) Assertpom.xmluses the specifieddescription.hasGroupId(String groupId) Assertpom.xmluses the specifiedgroupId.Assertpom.xmluses the specifiedname.hasPackaging(String packaging) Assertpom.xmluses the specifiedpackaging.Assertpom.xmldefines the specified parent.hasProfile(String id) Assertpom.xmldefines a profile with the specifiedid.hasProperty(String name, String value) Assertpom.xmldefines the specified property.hasRepositoriesSize(int size) Assertpom.xmldefines the specified number of repositories.hasRepository(String id, String name, String url, Boolean snapshotsEnabled) Assertpom.xmldefines the specified repository.Assertpom.xmlcontains the specified value at the specified path.hasVersion(String version) Assertpom.xmluses the specifiedversion.Methods inherited from class io.spring.initializr.generator.test.io.AbstractTextAssert
contains, containsExactly, hasSameContentAs, linesMethods inherited from class org.assertj.core.api.AbstractStringAssert
asBase64Decoded, asBoolean, asByte, asDouble, asFloat, asInt, asLong, asShort, decodedAsBase64, isBase64, isBetween, isEqualTo, isEqualTo, isGreaterThan, isGreaterThanOrEqualTo, isLessThan, isLessThanOrEqualTo, isStrictlyBetween, usingComparator, usingComparator, usingDefaultComparatorMethods inherited from class org.assertj.core.api.AbstractCharSequenceAssert
contains, contains, containsAnyOf, containsIgnoringCase, containsIgnoringNewLines, containsIgnoringWhitespaces, containsOnlyDigits, containsOnlyOnce, containsOnlyWhitespaces, containsPattern, containsPattern, containsPatternSatisfying, containsPatternSatisfying, containsSequence, containsSequence, containsSubsequence, containsSubsequence, containsWhitespaces, doesNotContain, doesNotContain, doesNotContainAnyWhitespaces, doesNotContainIgnoringCase, doesNotContainOnlyWhitespaces, doesNotContainPattern, doesNotContainPattern, doesNotEndWith, doesNotEndWithIgnoringCase, doesNotMatch, doesNotMatch, doesNotStartWith, doesNotStartWithIgnoringCase, endsWith, endsWithIgnoringCase, hasLineCount, hasSameSizeAs, hasSameSizeAs, hasSameSizeAs, hasSize, hasSizeBetween, hasSizeGreaterThan, hasSizeGreaterThanOrEqualTo, hasSizeLessThan, hasSizeLessThanOrEqualTo, inHexadecimal, inUnicode, isAlphabetic, isAlphanumeric, isASCII, isBlank, isEmpty, isEqualToIgnoringCase, isEqualToIgnoringNewLines, isEqualToIgnoringWhitespace, isEqualToNormalizingNewlines, isEqualToNormalizingPunctuationAndWhitespace, isEqualToNormalizingUnicode, isEqualToNormalizingWhitespace, isHexadecimal, isJavaBlank, isLowerCase, isMixedCase, isNotBlank, isNotEmpty, isNotEqualToIgnoringCase, isNotEqualToIgnoringWhitespace, isNotEqualToNormalizingWhitespace, isNotJavaBlank, isNullOrEmpty, isPrintable, isSubstringOf, isUpperCase, isVisible, isXmlEqualTo, isXmlEqualToContentOf, matches, matches, matchesSatisfying, matchesSatisfying, startsWith, startsWithIgnoringCase, usingDefaultElementComparator, usingElementComparatorMethods 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, inBinary, 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, usingRecursiveAssertion, usingRecursiveAssertion, usingRecursiveComparison, usingRecursiveComparison, 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, as, as, describedAs, describedAs
-
Constructor Details
-
MavenBuildAssert
-
MavenBuildAssert
-
-
Method Details
-
hasParent
Assertpom.xmldefines the specified parent.- Parameters:
groupId- the groupId of the parentartifactId- the artifactId of the parentversion- the version of the parent- Returns:
thisassertion object
-
hasGroupId
Assertpom.xmluses the specifiedgroupId.- Parameters:
groupId- the groupId of the project- Returns:
thisassertion object
-
hasArtifactId
Assertpom.xmluses the specifiedartifactId.- Parameters:
artifactId- the artifactId of the project- Returns:
thisassertion object
-
hasVersion
Assertpom.xmluses the specifiedversion.- Parameters:
version- the version of the project- Returns:
thisassertion object
-
hasPackaging
Assertpom.xmluses the specifiedpackaging.- Parameters:
packaging- the packaging of the project- Returns:
thisassertion object
-
hasName
Assertpom.xmluses the specifiedname.- Parameters:
name- the name of the project- Returns:
thisassertion object
-
hasDescription
Assertpom.xmluses the specifieddescription.- Parameters:
description- the description of the project- Returns:
thisassertion object
-
hasProperty
Assertpom.xmldefines the specified property.- Parameters:
name- the name of the propertyvalue- the value of the property- Returns:
thisassertion object
-
doesNotHaveProperty
Assertpom.xmldoes not define the specified property.- Parameters:
name- the name of the property- Returns:
thisassertion object
-
hasDependenciesSize
Assertpom.xmldefines the specified number of dependencies.- Parameters:
size- the number of dependencies- Returns:
thisassertion object
-
hasDependency
Assertpom.xmldefines the specified dependency with no version and compile scope.- Parameters:
groupId- the groupId of the dependencyartifactId- the artifactId of the dependency- Returns:
thisassertion object
-
hasDependency
Assertpom.xmldefines the specified dependency with compile scope.- Parameters:
groupId- the groupId of the dependencyartifactId- the artifactId of the dependencyversion- the version of the dependency- Returns:
thisassertion object
-
hasDependency
public MavenBuildAssert hasDependency(String groupId, String artifactId, String version, String scope) Assertpom.xmldefines the specified dependency with the specified scope.- Parameters:
groupId- the groupId of the dependencyartifactId- the artifactId of the dependencyversion- the version of the dependencyscope- the scope of the dependency- Returns:
thisassertion object
-
hasDependency
Assertpom.xmldefines the specified dependency.- Parameters:
dependency- the dependency- Returns:
thisassertion object
-
doesNotHaveDependency
Assert thatpom.xmldoes not define a dependency with the specifiedgroupIdandartifactId.- Parameters:
groupId- the dependency's groupIdartifactId- the dependency's artifactId- Returns:
thisassertion object
-
hasBomsSize
Assertpom.xmldefines the specified number of boms.- Parameters:
size- the number of boms- Returns:
thisassertion object
-
hasBom
Assertpom.xmldefines the specified bom.- Parameters:
groupId- the groupId of the bomartifactId- the artifactId of the bomversion- the version of the bom- Returns:
thisassertion object
-
doesNotHaveBom
Assert thatpom.xmldoes not define the specified bom.- Parameters:
groupId- the groupId of the bomartifactId- the artifactId of the bom- Returns:
thisassertion object
-
hasRepositoriesSize
Assertpom.xmldefines the specified number of repositories.- Parameters:
size- the number of repositories- Returns:
thisassertion object
-
hasRepository
Assertpom.xmldefines the specified repository.- Parameters:
id- the id of the repositoryname- the name of the repositoryurl- the url of the repositorysnapshotsEnabled- whether snapshot is enabled for the repository- Returns:
thisassertion object
-
hasProfile
Assertpom.xmldefines a profile with the specifiedid.- Parameters:
id- the id of the profile- Returns:
thisassertion object
-
doesNotHaveProfile
Assertpom.xmldoes not define a profile with the specifiedid.- Parameters:
id- the id of the profile- Returns:
thisassertion object
-
doesNotHaveNode
Assertpom.xmldoes not define a node with the specifiedpath.- Parameters:
path- the path of the node- Returns:
- this
-
hasText
Assertpom.xmlcontains the specified value at the specified path.- Parameters:
path- the path to the elementvalue- the expected value of the element- Returns:
- this
-