| Package | Description |
|---|---|
| io.spring.initializr.generator.test.buildsystem.maven |
Support for testing a Maven build.
|
| io.spring.initializr.generator.test.project |
Support for testing project generation.
|
| Modifier and Type | Method and Description |
|---|---|
MavenBuildAssert |
MavenBuildAssert.doesNotHaveBom(String groupId,
String artifactId)
Assert that
pom.xml does not define the specified bom. |
MavenBuildAssert |
MavenBuildAssert.doesNotHaveDependency(String groupId,
String artifactId)
Assert that
pom.xml does not define a dependency with the specified
groupId and artifactId. |
MavenBuildAssert |
MavenBuildAssert.doesNotHaveNode(String path)
Assert
pom.xml does not define a node with the specified path. |
MavenBuildAssert |
MavenBuildAssert.doesNotHaveProfile(String id)
Assert
pom.xml does not define a profile with the specified id. |
MavenBuildAssert |
MavenBuildAssert.doesNotHaveProperty(String name)
Assert
pom.xml does not define the specified property. |
MavenBuildAssert |
MavenBuildAssert.hasArtifactId(String artifactId)
Assert
pom.xml uses the specified artifactId. |
MavenBuildAssert |
MavenBuildAssert.hasBom(String groupId,
String artifactId,
String version)
Assert
pom.xml defines the specified bom. |
MavenBuildAssert |
MavenBuildAssert.hasBomsSize(int size)
Assert
pom.xml defines the specified number of boms. |
MavenBuildAssert |
MavenBuildAssert.hasDependenciesSize(int size)
Assert
pom.xml defines the specified number of dependencies. |
MavenBuildAssert |
MavenBuildAssert.hasDependency(Dependency dependency)
Assert
pom.xml defines the specified dependency. |
MavenBuildAssert |
MavenBuildAssert.hasDependency(String groupId,
String artifactId)
Assert
pom.xml defines the specified dependency with no version and compile
scope. |
MavenBuildAssert |
MavenBuildAssert.hasDependency(String groupId,
String artifactId,
String version)
Assert
pom.xml defines the specified dependency with compile scope. |
MavenBuildAssert |
MavenBuildAssert.hasDependency(String groupId,
String artifactId,
String version,
String scope)
Assert
pom.xml defines the specified dependency with the specified scope. |
MavenBuildAssert |
MavenBuildAssert.hasDescription(String description)
Assert
pom.xml uses the specified description. |
MavenBuildAssert |
MavenBuildAssert.hasGroupId(String groupId)
Assert
pom.xml uses the specified groupId. |
MavenBuildAssert |
MavenBuildAssert.hasName(String name)
Assert
pom.xml uses the specified name. |
MavenBuildAssert |
MavenBuildAssert.hasPackaging(String packaging)
Assert
pom.xml uses the specified packaging. |
MavenBuildAssert |
MavenBuildAssert.hasParent(String groupId,
String artifactId,
String version)
Assert
pom.xml defines the specified parent. |
MavenBuildAssert |
MavenBuildAssert.hasProfile(String id)
Assert
pom.xml defines a profile with the specified id. |
MavenBuildAssert |
MavenBuildAssert.hasProperty(String name,
String value)
Assert
pom.xml defines the specified property. |
MavenBuildAssert |
MavenBuildAssert.hasRepositoriesSize(int size)
Assert
pom.xml defines the specified number of repositories. |
MavenBuildAssert |
MavenBuildAssert.hasRepository(String id,
String name,
String url,
Boolean snapshotsEnabled)
Assert
pom.xml defines the specified repository. |
MavenBuildAssert |
MavenBuildAssert.hasText(String path,
String value)
Assert
pom.xml contains the specified value at the specified path. |
MavenBuildAssert |
MavenBuildAssert.hasVersion(String version)
Assert
pom.xml uses the specified version. |
| Modifier and Type | Method and Description |
|---|---|
MavenBuildAssert |
AbstractModuleAssert.mavenBuild()
Assert this module has a
pom.xml and return an assert for the pom.xml file of this module, to allow chaining of
maven-specific assertions from this call. |
Copyright © 2022 Pivotal Software, Inc.. All rights reserved.