Package io.quarkus.maven.it
Class RunAndCheckMojoTestBase
- java.lang.Object
-
- io.quarkus.maven.it.MojoTestBase
-
- io.quarkus.maven.it.RunAndCheckMojoTestBase
-
public class RunAndCheckMojoTestBase extends MojoTestBase
-
-
Field Summary
Fields Modifier and Type Field Description protected RunningInvoker
running
protected File
testDir
-
Constructor Summary
Constructors Constructor Description RunAndCheckMojoTestBase()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cleanup()
protected Supplier<String>
getBrokenReason()
protected LaunchMode
getDefaultLaunchMode()
Quarkus can be launched as `quarkus:dev` or `quarkus:test`.String
getHttpErrorResponse()
String
getHttpResponse()
protected void
install(File baseDir, boolean performClean)
protected void
run(boolean performCompile, LaunchMode mode, String... options)
protected void
run(boolean performCompile, String... options)
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
runAndExpectError()
void
shutdownTheApp()
-
Methods inherited from class io.quarkus.maven.it.MojoTestBase
assertThatOutputWorksCorrectly, disableDevToolsTestConfig, enableDevToolsTestConfig, enableDevToolsTestConfig, filter, getEnv, getFilesEndingWith, getTargetDir, initEmptyProject, initInvoker, initProject, initProject, loadPom, passUserSettings
-
-
-
-
Field Detail
-
running
protected RunningInvoker running
-
testDir
protected File testDir
-
-
Method Detail
-
cleanup
@AfterEach public void cleanup()
-
shutdownTheApp
public void shutdownTheApp()
-
getDefaultLaunchMode
protected 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:
FileNotFoundException
org.apache.maven.shared.invoker.MavenInvocationException
-
run
protected void run(boolean performCompile, LaunchMode mode, 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
protected void install(File baseDir, boolean performClean) throws Exception
- Throws:
Exception
-
getHttpErrorResponse
public String getHttpErrorResponse()
-
getHttpResponse
public String getHttpResponse()
-
-