Current User and Tenant

ebean-test will automatically register a current user provider and a current tenant provider. These are only set if you don't set them yourself.

This means is that without doing anything we can use @WhoCreated / @WhoModified in tests and via io.ebean.test.UserContext we can set current user and tenant in tests.

// set the current userId which will be put
// into 'WhoCreated' and 'WhoModified' properties


Edit Page