Annotation Type HierarchyTest


  • @Retention(RUNTIME)
    @Target(TYPE)
    public @interface HierarchyTest
    Indicates that a test class checks hierarchy of Spring Beans and/or classes.
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      boolean beans
      Specifies, if test should check Spring beans hierarchy.
      boolean classes
      Specifies, if test should check class hierarchy.
      java.lang.String[] definitions  
      java.lang.String[] packages  
    • Element Detail

      • beans

        boolean beans
        Specifies, if test should check Spring beans hierarchy.
        Returns:
        false if Spring beans hierarchy should not be tested
        Default:
        true
      • definitions

        java.lang.String[] definitions
        Returns:
        collection of absolute path for Spring beans definitions to be tested
        Default:
        {}
      • classes

        boolean classes
        Specifies, if test should check class hierarchy.
        Returns:
        false if classes hierarchy should not be tested
        Default:
        true
      • packages

        java.lang.String[] packages
        Returns:
        collection of package prefix for classes to be tested
        Default:
        {}