Package io.quarkus.maven.it
Class RunAndCheckMojoTestBase
java.lang.Object
io.quarkus.maven.it.MojoTestBase
io.quarkus.maven.it.RunAndCheckMojoTestBase
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
cleanup()
protected int
Default to quite constrained memory, but allow subclasses to override, for hungrier tests.protected LaunchMode
Quarkus can be launched as `quarkus:dev` or `quarkus:test`.protected int
getPort()
Default to port 8080, but allow subtests to override.protected void
protected void
run
(boolean performCompile, LaunchMode mode, boolean skipAnalytics, String... options) protected void
run
(boolean performCompile, LaunchMode mode, String... options) protected void
protected void
runAndCheck
(boolean performCompile, LaunchMode mode, String... options) protected void
runAndCheck
(boolean performCompile, String... options) protected void
runAndCheck
(LaunchMode mode, String... options) protected void
runAndCheck
(String... options) protected void
void
Methods 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
-
-
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
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:
FileNotFoundException
org.apache.maven.shared.invoker.MavenInvocationException
-
run
protected void run(boolean performCompile, LaunchMode mode, String... options) throws org.apache.maven.shared.invoker.MavenInvocationException, FileNotFoundException - Throws:
org.apache.maven.shared.invoker.MavenInvocationException
FileNotFoundException
-
run
protected void run(boolean performCompile, LaunchMode mode, boolean skipAnalytics, String... options) throws FileNotFoundException, org.apache.maven.shared.invoker.MavenInvocationException - Throws:
FileNotFoundException
org.apache.maven.shared.invoker.MavenInvocationException
-
runAndCheck
protected void runAndCheck(String... options) throws FileNotFoundException, org.apache.maven.shared.invoker.MavenInvocationException - Throws:
FileNotFoundException
org.apache.maven.shared.invoker.MavenInvocationException
-
runAndCheck
protected void runAndCheck(LaunchMode mode, String... options) throws FileNotFoundException, org.apache.maven.shared.invoker.MavenInvocationException - Throws:
FileNotFoundException
org.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.MavenInvocationException
FileNotFoundException
-
runAndCheck
protected void runAndCheck(boolean performCompile, LaunchMode mode, String... options) throws FileNotFoundException, org.apache.maven.shared.invoker.MavenInvocationException - Throws:
FileNotFoundException
org.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
-