Annotation Type IntegrationTest


  • @Target(TYPE)
    @Retention(RUNTIME)
    @Documented
    public @interface IntegrationTest

    The @IntegrationTest annotation is provided for marking integration tests which uses real services and usually will communicate with persistence layer.

    With the annotation attribute standalone you can specify whether current test requires some servlet container available during test run, like for instance Apache Tomcat.

    With the annotation attribute excludedAppserver you can specify in a comma separated string list the application server(s) where this test (with this annotation) should not be executed. The application server string is the value of the property key bundled.server.type. Example: "websphere,tomcat"

    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      java.lang.String excludedAppserver
      Comma separated list of application server where the test with this annotation should NOT be executed.
      java.lang.Class replaces
      Contains the test class to be replaced by this class.
      boolean standalone
      Determines whether test requires servlet container available.
    • Element Detail

      • standalone

        boolean standalone
        Determines whether test requires servlet container available.
        Default:
        false
      • replaces

        java.lang.Class replaces
        Contains the test class to be replaced by this class.
        Default:
        de.hybris.bootstrap.annotations.IntegrationTest.class
      • excludedAppserver

        java.lang.String excludedAppserver
        Comma separated list of application server where the test with this annotation should NOT be executed.
        Default:
        ""