@Documented @Retention(value=RUNTIME) @Target(value=METHOD) @Inherited public @interface SpringContextConfiguration
Marks the factory method for instantiating and configuring Spring's ApplicationContext within the test
class.
The annotated method need to have fallowing signature:
public static [type] [method name]() {}
Where type can be any type can be casted into the ApplicationContext. Since the checking is done during the
runtime, the constraint can be lowered and the return type can be defined as Object, as long as the actual object
returned from the method can be casted into ApplicationContext.
Since the method name is irrelevant, it can be named in any way. Method can also define list of thrown exceptions as
needed. Copyright © 2014 JBoss by Red Hat. All Rights Reserved.