Testing API
Genesis provides JUnit 6 (JUnit Jupiter) support for integration tests. Tests start the Genesis services they need, so you can test your server code end to end.
Which page you need depends on how your application is built:
- Testing API (GPAL / Java) describes GenesisJunit, which you use to test GPAL and Java components such as event handlers, Data Servers and Request Servers.
- Testing API (Spring) describes
@GenesisSpringTest, the equivalent for Spring Boot / JPA applications. It runs the same test machinery inside a Spring test context and makes the event, Request Server and Data Server test clients available as Spring beans. - Legacy Testing API describes the older test-support classes, which are deprecated in GSF 10.0, and explains how to move tests that use them to GenesisJunit.
Working with Spring?
Start with Getting Started with Spring, a step-by-step tutorial that sets up a Spring module, then Application core for how Spring is bridged into a Genesis application.