Legacy Testing API
The test-support classes on this page are still part of Genesis Server Framework (GSF) 10.0, but they are deprecated. Existing tests that use them still compile and run, with deprecation warnings when you build them.
The test-support classes on this page are still part of Genesis Server Framework (GSF) 10.0, but they are deprecated. Existing tests that use them still compile and run, with deprecation warnings when you build them.
A common pattern for unit testing is mocking out functions and data.
foundation-testing is a comprehensive framework for Unit and End-to-End (E2E) testing, designed to validate components, user interactions, and workflows. Fully compatible with Genesis, React, and Angular frameworks, it ensures that your application can deliver a seamless and reliable user experience across diverse scenarios.
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.
Integration testing