Annotation Type TestedBean


  • @Target(FIELD)
    @Retention(RUNTIME)
    @Documented
    public @interface TestedBean
    Annotation to indicate that a field in a unit test class is a bean being tested. This annotation is taken in charge by the SilverTestEnv extension. When such an annotation is discovered by the extension, it will be automatically instantiated (if not yet done) and all of its dependencies (id est fields annotated with @Inject) will be either resolved or mocked. Finally, the PostConstruct annotated method will be invoked.
    Author:
    mmoquillon