Annotation Type BranchedHierarchy


  • @Retention(RUNTIME)
    @Target(TYPE)
    public @interface BranchedHierarchy
    Annotation 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.

    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      java.lang.String[] beans  
      java.lang.Class[] classes  
      java.lang.String[] value  
    • 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 BranchedHierarchy for 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 BranchedHierarchy for 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 BranchedHierarchy for details
        Default:
        {}