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
|
Required Element Summary |
java.lang.String |
value
|
value
public abstract java.lang.String value
Copyright © 2009. All Rights Reserved.