Class SonarJerseyServer


  • public class SonarJerseyServer
    extends java.lang.Object
    The purpose of this class is to verify the reported test coverage shows correct results in various modes of test executions. For further details, see javadoc bellow.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String e2e()
      This method is executed from a unit test by maven surefire plugin from a dependant module.
      java.lang.String integrationServerJvm()
      This method is executed from a server (Jetty for instance) during the integration test phase.
      java.lang.String integrationTestJvm()
      A method that is executed in a JVM of maven failsafe plugin from a dependant maven module.
      private java.lang.String server()
      This method is invoked indirectly from the tests.
      java.lang.String unitTest()
      A method that is executed from a unit test by maven surefire plugin within the same Maven module.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SonarJerseyServer

        public SonarJerseyServer()
    • Method Detail

      • server

        private java.lang.String server()
        This method is invoked indirectly from the tests.
      • unitTest

        public java.lang.String unitTest()
        A method that is executed from a unit test by maven surefire plugin within the same Maven module.
      • e2e

        public java.lang.String e2e()
        This method is executed from a unit test by maven surefire plugin from a dependant module.
      • integrationTestJvm

        public java.lang.String integrationTestJvm()
        A method that is executed in a JVM of maven failsafe plugin from a dependant maven module. The call is executed directly.
      • integrationServerJvm

        public java.lang.String integrationServerJvm()
        This method is executed from a server (Jetty for instance) during the integration test phase. This server is called by a JUnit test that is executed by maven failsafe plugin.