Annotation Type AssertJAssertionsWrapper


  • public @interface AssertJAssertionsWrapper
    The AssertJAssertionsWrapper transforms all assertThat-methods of a class (specified by value() to assertThat and assertThatWithin methods which expect a corresponding supplier. The methods to be transformed have to fulfill all of these criteria:
    • name equals "assertThat"
    • static
    • exactly one parameter
    • no type parameters
    • if at list one include is specified, the method's first parameter type has to be mentioned there
    • if at list one exclude is specified, the method's first parameter type may not to be mentioned there
    The generated assertThat methods expect a supplier and offer the possibility to wait for a certain time until the assertion is successful.
    Since:
    3.1.0
    Author:
    Oliver Libutzki <[email protected]>
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      java.lang.Class<?> value
      The class whose method should be transformed
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      java.lang.Class<?>[] excludes
      Methods whose first parameter type is mentioned in the excludes list are excluded from transformation.
      java.lang.Class<?>[] includes
      Methods whose first parameter type is mentioned in the includes list are included from transformation.
    • Element Detail

      • value

        java.lang.Class<?> value
        The class whose method should be transformed
        Returns:
        class which's method should be transformed
        Since:
        3.1.0
      • excludes

        java.lang.Class<?>[] excludes
        Methods whose first parameter type is mentioned in the excludes list are excluded from transformation. This means if at least one type is specified all the methods having a first parameter type which is not mentioned are considered for transformation.
        Returns:
        excluded methods' first parameter type
        Since:
        3.1.0
        Default:
        {}
      • includes

        java.lang.Class<?>[] includes
        Methods whose first parameter type is mentioned in the includes list are included from transformation. This means if at least one type is specified all the methods having a first parameter type which is not mentioned are not considered for transformation.
        Returns:
        included methods' first parameter type
        Since:
        3.1.0
        Default:
        {}