Class QuarkusCodestartTestBuilder
java.lang.Object
io.quarkus.devtools.testing.codestarts.QuarkusCodestartTestBuilder
Builder for
QuarkusCodestartTest-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddArtifacts(Collection<String> artifacts) Add artifacts which contains codestartsbuild()Set the build tool to use for testing (default is maven)codestarts(String... codestarts) Set the list of codestarts that should be added to the generated projectsextension(io.quarkus.maven.dependency.ArtifactCoords extension) Set the extension (and its codestarts) that should be added to the generated projectsextension(io.quarkus.maven.dependency.ArtifactKey extension) Set the extension (and its codestarts) that should be added to the generated projectsextensionCatalog(io.quarkus.registry.catalog.ExtensionCatalog extensionCatalog) Specify a custom extensionCatalog, by default it will use the test registry to get it.extensions(Collection<io.quarkus.maven.dependency.ArtifactCoords> extensions) Set the list of extensions (and their codestarts) that should be added to the generated projectslanguages(QuarkusCodestartCatalog.Language... languages) Set the list of languages in which we should generated projectspackageName(String packageName) Set the package name to use in the generated projectsAdd some custom codestart data for testingAdd some custom codestart data for testingquarkusCodestartCatalog(QuarkusCodestartCatalog quarkusCodestartCatalog) Specify a custom quarkus codestart catalog, by default it will use the extension catalog to get it.Automatically set up the extension catalog for a standalone extension.setupStandaloneExtensionTest(String extensionGA) Automatically set up the extension catalog for a standalone extension.Deprecated.standaloneExtensionCatalog(String quarkusBomGroupId, String quarkusBomVersion) Deprecated, for removal: This API element is subject to removal in a future version.withQuarkusBom(String quarkusBomGroupId, String quarkusBomVersion) withQuarkusBomVersion(String quarkusBomVersion)
-
Field Details
-
DEFAULT_PACKAGE_FOR_TESTING
- See Also:
-
data
-
artifacts
-
packageName
-
quarkusBomGroupId
-
quarkusBomVersion
-
-
Constructor Details
-
QuarkusCodestartTestBuilder
public QuarkusCodestartTestBuilder()
-
-
Method Details
-
packageName
Set the package name to use in the generated projects- Parameters:
packageName-- Returns:
-
codestarts
Set the list of codestarts that should be added to the generated projects- Parameters:
codestarts- the list of codestarts- Returns:
-
languages
Set the list of languages in which we should generated projects- Parameters:
languages- the list of languages- Returns:
-
buildTool
Set the build tool to use for testing (default is maven)- Parameters:
buildTool-- Returns:
-
putData
Add some custom codestart data for testing- Parameters:
key-value-- Returns:
-
putData
Add some custom codestart data for testing- Parameters:
key-value-- Returns:
-
extensions
public QuarkusCodestartTestBuilder extensions(Collection<io.quarkus.maven.dependency.ArtifactCoords> extensions) Set the list of extensions (and their codestarts) that should be added to the generated projects- Parameters:
extensions- the list of extensions- Returns:
-
extension
Set the extension (and its codestarts) that should be added to the generated projects- Parameters:
extension- the extension- Returns:
-
extension
Set the extension (and its codestarts) that should be added to the generated projects- Parameters:
extension- the extension- Returns:
-
addArtifacts
Add artifacts which contains codestarts- Parameters:
artifacts- the artifacts coords- Returns:
-
quarkusCodestartCatalog
public QuarkusCodestartTestBuilder quarkusCodestartCatalog(QuarkusCodestartCatalog quarkusCodestartCatalog) Specify a custom quarkus codestart catalog, by default it will use the extension catalog to get it.- Parameters:
quarkusCodestartCatalog- the quarkusCodestartCatalog- Returns:
-
extensionCatalog
public QuarkusCodestartTestBuilder extensionCatalog(io.quarkus.registry.catalog.ExtensionCatalog extensionCatalog) Specify a custom extensionCatalog, by default it will use the test registry to get it.- Parameters:
extensionCatalog-- Returns:
-
withQuarkusBomVersion
-
withQuarkusBom
public QuarkusCodestartTestBuilder withQuarkusBom(String quarkusBomGroupId, String quarkusBomVersion) -
setupStandaloneExtensionTest
Automatically set up the extension catalog for a standalone extension. -
setupStandaloneExtensionTest
Automatically set up the extension catalog for a standalone extension. Add the given extension using the version from the current project.- Parameters:
extensionGA- the extension groupId:ArtifactId
-
standaloneExtensionCatalog
@Deprecated(forRemoval=true) public QuarkusCodestartTestBuilder standaloneExtensionCatalog(String quarkusBomGroupId, String quarkusBomVersion) Deprecated, for removal: This API element is subject to removal in a future version.Use withQuarkusBom instead -
standaloneExtensionCatalog
Deprecated.Use setupStandaloneExtensionTest instead -
build
-