Annotation Type IntegrationTest


  • @Documented
    @Target({METHOD,TYPE,ANNOTATION_TYPE})
    @Retention(RUNTIME)
    @Test
    @Tag("integration")
    public @interface IntegrationTest
    This annotation allows you to mark classes which are not really a unit test but a integration test. By default this classes are not executed by a normal test run with JUnit. Only if you set the system property Environment.INTEGRATION_TEST these tests will executed. You can use this annotation if
    • your JUnit test takes too long because it is a integration test,
    • you must be online for a JUnit test,
    • your JUnit test needs a database access,
    • your JUnit tests is to slow,
    • other good reason why the test should not be executed each time.
    Since:
    1.0 (05.03.2010)
    Author:
    oliver
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      java.lang.String value
      You can give a reason why this test is an integration test or should be skipped, e.g.
    • Element Detail

      • value

        java.lang.String value
        You can give a reason why this test is an integration test or should be skipped, e.g. "needs online access". This reason is printed to the log.
        Returns:
        the string
        Default:
        "this is marked as @IntegrationTest"