@Retention(value=CLASS)
@Target(value=FIELD)
public @interface BindValueIntoMap
SingletonComponent
as an IntoMap
for the given type. Example usage:
public class FooTest{
...
@BindValueIntoMap
@MyMapKey(KEY1)
String boundBar = "bar";
@BindValueIntoMap
@MyMapKey(KEY2)
String boundBaz = "baz";
...
}
Here the map that contains all the bound elements (in this case "bar" and "baz") will be
accessible to the entire application for your test.