Class RunAndCheckMojoTestBase

    • Constructor Detail

      • RunAndCheckMojoTestBase

        public RunAndCheckMojoTestBase()
    • 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
      • runAndCheck

        protected void runAndCheck​(boolean performCompile,
                                   String... options)
                            throws org.apache.maven.shared.invoker.MavenInvocationException,
                                   FileNotFoundException
        Throws:
        org.apache.maven.shared.invoker.MavenInvocationException
        FileNotFoundException
      • 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()