Skip to content

Commit

Permalink
Merge pull request #3027 from rvowles/docs/update-ebean-test
Browse files Browse the repository at this point in the history
Update the documentation for test tenants
  • Loading branch information
rbygrave committed Apr 17, 2023
2 parents ab1a792 + 19389fb commit 0e02449
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion ebean-test/src/main/java/io/ebean/test/UserContext.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,20 @@
* 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
*
Expand Down

0 comments on commit 0e02449

Please sign in to comment.