Lightlines
By giuseppe-trisciuoglio

unit-test-application-events

giuseppe-trisciuoglio3.4k installs

Test Spring events without booting the full context.

What it does

Guides unit testing of Spring application-event publishers, listeners, payloads, side effects, and asynchronous handlers.

When to use it

Use when writing tests for event publishers or listeners, including asynchronous handlers and mocked publishers.

How to use it

It changes how the agent writes unit tests for Spring application-event publishers and listeners.

What you provide

  • An existing project

Latest review

What you need · 4

The project needs the spring-boot-starter dependency.

The project needs JUnit 5 through the junit-jupiter test dependency.

The project needs the mockito-core test dependency.

The project needs the assertj-core test dependency.


Access · 0

No additional actions listed.