Annotation Interface 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
    Comma separated list of application server where the test with this annotation should NOT be executed.
    Contains the test class to be replaced by this class.
    boolean
    Determines whether test requires servlet container available.
  • Element Details

    • standalone

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

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

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