Annotation Interface ExposeForTest


@Retention(RUNTIME) @Target(TYPE) @Documented @Inherited @Import(com.foreach.across.test.ExposeForTestConfiguration.class) public @interface ExposeForTest
Annotation to manually expose additional components for the purpose of a test. Can be used in combination with SpringBootTest (on unit test class level), as well as on the level of an EnableAcrossContext configuration.

Note that AcrossTestConfiguration has an attribute AcrossTestConfiguration.expose() which is a short-hand alias for adding this annotation.

Since:
3.0.0
Author:
Arne Vandamme
See Also:
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Class<?>[]
    Specify a collection of types, interfaces or annotations that should be exposed by all modules.
  • Element Details

    • value

      Class<?>[] value
      Specify a collection of types, interfaces or annotations that should be exposed by all modules. Useful if you want to exposed components only for integration test purposes, especially for dynamic application modules which might not have anything exposed otherwise.
      Default:
      {}