org.unitils.spring.annotation
Annotation Type SpringBean
@Target(value={FIELD,METHOD})
@Retention(value=RUNTIME)
public @interface SpringBean
This annotation can be used on fields or single-argument void methods, in order to inject a bean
from a spring ApplicationContext
. The value attribute indicates the id of the bean
from the ApplicationContext
. An ApplicationContext
has to be configured
for this test using the SpringApplicationContext
annotation.
- Author:
- Filip Neven, Tim Ducheyne
value
public abstract String value
Copyright © 2011. All Rights Reserved.