Class RunAndCheckMojoTestBase

java.lang.Object
io.quarkus.maven.it.MojoTestBase
io.quarkus.maven.it.RunAndCheckMojoTestBase

public class RunAndCheckMojoTestBase extends MojoTestBase
  • Field Details

  • Constructor Details

    • RunAndCheckMojoTestBase

      public RunAndCheckMojoTestBase()
  • Method Details

    • getPort

      protected int getPort()
      Default to port 8080, but allow subtests to override.
    • 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 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

      protected void install(File baseDir, boolean performClean) throws Exception
      Throws:
      Exception
    • getHttpErrorResponse

      public String getHttpErrorResponse()
    • getHttpResponse

      public String getHttpResponse()
    • getBrokenReason

      protected Supplier<String> getBrokenReason()