Testing
#24 - Introduce Multi-Tenancy - Part 2 - Make Tests run as a Tenant
Make Tests run as a Tenant
Let's make our tests run as a particular tenant to mirror the actual user scenario
- create a Tenant and a user on-the-fly before each test
- creating a JUnit 5 extension to automatically setup tenant creating before each test