mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
Update the documentation for test tenants
The existing docs for test tenants is no longer correct and additional class level docs point users in the right direction.
This commit is contained in:
@@ -4,7 +4,20 @@ package io.ebean.test;
|
||||
* Use in test code when the CurrentUserProvider and/or CurrentTenantProvider were configured by
|
||||
* this ebean-test-config plugin.
|
||||
* <p>
|
||||
* That is, the ebean-test-config plugin will check if there ia a CurrentUserProvider and if not
|
||||
* This is not automatically available. If you wish to use this class in your Tenant testing, you must set the
|
||||
* application.properties setting to:
|
||||
*
|
||||
* <pre>
|
||||
* ebean.test.registerTestTenantProvider=true
|
||||
* </pre>
|
||||
*
|
||||
* or application-test.yaml:
|
||||
* <pre>
|
||||
* ebean:
|
||||
* test:
|
||||
* registerTestTenantProvider: true
|
||||
* </pre>.
|
||||
* If set to true, the ebean-test-config plugin will check if there is a CurrentUserProvider and if not
|
||||
* automatically set one and that provider reads the 'current user' from this UserContext.
|
||||
* <pre>{@code
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user