Annotation Type BindValueIntoSet

  • @Retention(CLASS)
    public @interface BindValueIntoSet
    An annotation that can be used on a test field to contribute the value into the SingletonComponent as an IntoSet for the given type. Example usage:
     public class FooTest{
       @BindValueIntoSet String boundBar = "bar";
       @BindValueIntoSet String boundBaz = "baz";
    Here the set that contains all the bound elements (in this case "bar" and "baz") will be accessible to the entire application for your test. Also see BindElementsIntoSet, where you can gather individual elements into one set and bind it to the application.