Annotation Type Expected


  • @Target({TYPE,METHOD})
    @Retention(RUNTIME)
    @Documented
    @Inherited
    public @interface Expected
    This annotation can be used to specify the expected error conditions to occur during the launch of the tested application.

    It cannot be used to specify the expected error conditions to occur during the test itself.

    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      Class<? extends Exception> value
      The exception class expected to occur during the tested application launch.
    • Element Detail

      • value

        Class<? extends Exception> value
        The exception class expected to occur during the tested application launch.
        Returns:
        the exception class.
        Default:
        org.seedstack.seed.testing.Expected.None.class