org.springframework.boot.test

Annotation Type IntegrationTest



  • @Documented
    @Inherited
    @Retention(value=RUNTIME)
    @Target(value=TYPE)
    @TestExecutionListeners(listeners={IntegrationTestPropertiesListener.class,org.springframework.test.context.support.DependencyInjectionTestExecutionListener.class,org.springframework.test.context.support.DirtiesContextTestExecutionListener.class,org.springframework.test.context.transaction.TransactionalTestExecutionListener.class,org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener.class})
    public @interface IntegrationTest
    Test class annotation signifying that the tests are "integration tests" and therefore require full startup in the same way as a production application. Normally used in conjunction with @SpringApplicationConfiguration.

    If your test also uses @WebAppConfiguration consider using the WebIntegrationTest instead.

    Author:
    Dave Syer
    See Also:
    WebIntegrationTest
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element and Description
      String[] value
      Properties in form key=value that should be added to the Spring Environment before the test runs.
    • Element Detail

      • value

        public abstract String[] value
        Properties in form key=value that should be added to the Spring Environment before the test runs.
        Default:
        {}

Copyright © 2015 Pivotal Software, Inc.. All rights reserved.