Annotation Type RabbitListenerTest


  • @Target(TYPE)
    @Retention(RUNTIME)
    @Documented
    @EnableRabbit
    @Import(RabbitListenerTestSelector.class)
    public @interface RabbitListenerTest
    Annotate a @Configuration class with this to enable proxying @RabbitListener beans to capture arguments and result (if any).
    Since:
    1.6
    Author:
    Gary Russell, Artem Bilan
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      boolean capture
      Set to true to advise the listener with a capture advice,
      boolean spy
      Set to true to create a Mockito spy on the listener.
    • Element Detail

      • spy

        boolean spy
        Set to true to create a Mockito spy on the listener.
        Returns:
        true to create the spy; default true.
        Default:
        true
      • capture

        boolean capture
        Set to true to advise the listener with a capture advice,
        Returns:
        true to advise the listener; default false.
        Default:
        false