Package org.apache.camel.test.spring
Annotation Type UseAdviceWith
-
@Documented @Inherited @Retention(RUNTIME) @Target(TYPE) @Deprecated public @interface UseAdviceWith
Deprecated.Indicates the use ofadviceWith()
within the test class. If a class is annotated with this annotation andvalue()
returns true, anyCamelContext
s bootstrapped during the test through the use of Spring Test loaded application contexts will not be started automatically. The test author is responsible for injecting the Camel contexts into the test and executingCamelContextLifecycle.start()
on them at the appropriate time after any advice has been applied to the routes in the Camel context(s).
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description boolean
value
Deprecated.Whether the test annotated with this annotation should be treated as ifadviceWith()
is in use in the test and the Camel contexts should not be started automatically.
-