@Retention(value=RUNTIME) @Target(value=TYPE) public @interface BranchedHierarchy
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.
public abstract String[] value
BranchedHierarchy for detailspublic abstract Class[] classes
BranchedHierarchy for detailspublic abstract String[] beans
BranchedHierarchy for detailsCopyright © 2018. All rights reserved.