Annotation Type BranchedHierarchy
-
@Retention(RUNTIME) @Target(TYPE) public @interface BranchedHierarchyAnnotation to allow a class/bean having multiple children.Annotation may be used on test class level to provide a collection of classes and spring beans that should not be checked against flat hierarchy. This way one may point to classes that are out of his/her control (i.e. comes from third-party libraries).
Annotation may be used on particular class level to inform the test that it is allowed for this class to have multiple children. When annotation is used this way, one may specify which exact children are allowed - any other child will make test fail.
-
-
Element Detail
-
value
java.lang.String[] value
- Returns:
- collection of string descriptions of class (full qualified class name expected) and/or Spring bean (exact
bean id expected) that are allowed to have branched hierarchy or are allowed children (depending on where
annotation is used - see
BranchedHierarchyfor details
- Default:
- {}
-
-
-
classes
java.lang.Class[] classes
- Returns:
- collection of classes (full qualified class name expected) that are allowed to have branched hierarchy or are
allowed children (depending on where annotation is used - see
BranchedHierarchyfor details
- Default:
- {}
-
-
-
beans
java.lang.String[] beans
- Returns:
- collection of Spring beans (exact bean id expected) that are allowed to have branched hierarchy or are
allowed children (depending on where annotation is used - see
BranchedHierarchyfor details
- Default:
- {}
-
-