Package io.quarkus.maven.it
Class RunAndCheckMojoTestBase
java.lang.Object
io.quarkus.maven.it.MojoTestBase
io.quarkus.maven.it.RunAndCheckMojoTestBase
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected io.quarkus.test.devmode.util.DevModeClientprotected RunningInvokerprotected File -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcleanup()protected intDefault to quite constrained memory, but allow subclasses to override, for hungrier tests.protected io.quarkus.runtime.LaunchModeQuarkus can be launched as `quarkus:dev` or `quarkus:test`.protected intgetPort()Default to port 8080, but allow subtests to override.protected voidprotected voidrun(boolean performCompile, io.quarkus.runtime.LaunchMode mode, boolean skipAnalytics, String... options) protected voidprotected voidprotected voidrunAndCheck(boolean performCompile, io.quarkus.runtime.LaunchMode mode, String... options) protected voidrunAndCheck(boolean performCompile, String... options) protected voidrunAndCheck(io.quarkus.runtime.LaunchMode mode, String... options) protected voidrunAndCheck(String... options) protected voidvoidMethods inherited from class io.quarkus.maven.it.MojoTestBase
assertThatOutputWorksCorrectly, disableDevToolsTestConfig, enableDevToolsTestConfig, enableDevToolsTestConfig, filter, getEnv, getFilesEndingWith, getTargetDir, initEmptyProject, initInvoker, initProject, initProject, loadPom, passUserSettings
-
Field Details
-
running
-
testDir
-
devModeClient
protected io.quarkus.test.devmode.util.DevModeClient devModeClient
-
-
Constructor Details
-
RunAndCheckMojoTestBase
public RunAndCheckMojoTestBase()
-
-
Method Details
-
getPort
protected int getPort()Default to port 8080, but allow subtests to override. -
getAllowedHeapInMb
protected int getAllowedHeapInMb()Default to quite constrained memory, but allow subclasses to override, for hungrier tests. -
cleanup
@AfterEach public void cleanup() -
shutdownTheApp
public void shutdownTheApp() -
getDefaultLaunchMode
protected io.quarkus.runtime.LaunchMode getDefaultLaunchMode()Quarkus can be launched as `quarkus:dev` or `quarkus:test`. In most cases it doesn't matter and dev mode is fine, but sometimes it's useful to cover test mode, since it sometimes behaves differently. -
run
protected void run(boolean performCompile, String... options) throws FileNotFoundException, org.apache.maven.shared.invoker.MavenInvocationException - Throws:
FileNotFoundExceptionorg.apache.maven.shared.invoker.MavenInvocationException
-
run
protected void run(boolean performCompile, io.quarkus.runtime.LaunchMode mode, String... options) throws org.apache.maven.shared.invoker.MavenInvocationException, FileNotFoundException - Throws:
org.apache.maven.shared.invoker.MavenInvocationExceptionFileNotFoundException
-
run
protected void run(boolean performCompile, io.quarkus.runtime.LaunchMode mode, boolean skipAnalytics, String... options) throws FileNotFoundException, org.apache.maven.shared.invoker.MavenInvocationException - Throws:
FileNotFoundExceptionorg.apache.maven.shared.invoker.MavenInvocationException
-
runAndCheck
protected void runAndCheck(String... options) throws FileNotFoundException, org.apache.maven.shared.invoker.MavenInvocationException - Throws:
FileNotFoundExceptionorg.apache.maven.shared.invoker.MavenInvocationException
-
runAndCheck
protected void runAndCheck(io.quarkus.runtime.LaunchMode mode, String... options) throws FileNotFoundException, org.apache.maven.shared.invoker.MavenInvocationException - Throws:
FileNotFoundExceptionorg.apache.maven.shared.invoker.MavenInvocationException
-
runAndCheck
protected void runAndCheck(boolean performCompile, String... options) throws org.apache.maven.shared.invoker.MavenInvocationException, FileNotFoundException - Throws:
org.apache.maven.shared.invoker.MavenInvocationExceptionFileNotFoundException
-
runAndCheck
protected void runAndCheck(boolean performCompile, io.quarkus.runtime.LaunchMode mode, String... options) throws FileNotFoundException, org.apache.maven.shared.invoker.MavenInvocationException - Throws:
FileNotFoundExceptionorg.apache.maven.shared.invoker.MavenInvocationException
-
runAndExpectError
protected void runAndExpectError() throws org.apache.maven.shared.invoker.MavenInvocationException- Throws:
org.apache.maven.shared.invoker.MavenInvocationException
-
install
- Throws:
Exception
-
getHttpErrorResponse
-
getHttpResponse
-
getBrokenReason
-