A C D E F I L N O P R S U W
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- asJson() - Method in class io.ebean.test.DbJson.PrettyJson
-
Return the JSON content.
- assertContentMatches(String) - Method in class io.ebean.test.DbJson.PrettyJson
-
Assert the json matches the content at the given resource path.
- AutoConfigureForTesting - Class in io.ebean.test.config
-
Automatically configure ServerConfig for testing purposes.
- AutoConfigureForTesting() - Constructor for class io.ebean.test.config.AutoConfigureForTesting
C
- CapturingLoggerFactory - Class in io.ebean.test
-
Create a logger that captures the SQL and register it for later access in tests.
- CapturingLoggerFactory() - Constructor for class io.ebean.test.CapturingLoggerFactory
- close() - Method in class io.ebean.test.ForTests.RollbackAll
-
Rollback the wrapping transaction.
- collect() - Static method in class io.ebean.test.LoggedSql
-
Collect and return the messages/sql that was captured since the call to start() or collect().
- configExtraDataSource() - Method in class io.ebean.test.config.platform.PlatformAutoConfig
-
Configure the DataSource for the extra database.
- create(String) - Method in class io.ebean.test.CapturingLoggerFactory
- createRollbackAll() - Static method in class io.ebean.test.ForTests
-
Create and return a RollbackAll which should be closed at the end of the test(s).
- currentTenantId() - Static method in class io.ebean.test.UserContext
-
Return the current tenantId.
- currentUserId() - Static method in class io.ebean.test.UserContext
-
Return the current user.
D
- DbJson - Class in io.ebean.test
-
Helper for testing to assert that the JSON form of an entity or list of entities match a String / typically test resource.
- DbJson() - Constructor for class io.ebean.test.DbJson
- DbJson.PrettyJson - Class in io.ebean.test
-
Contains the JSON of beans(s).
E
- enableTransactional(boolean) - Static method in class io.ebean.test.ForTests
-
Enable or disable
@Transactionalmethods.
F
- ForTests - Class in io.ebean.test
-
Helper methods for testing.
- ForTests() - Constructor for class io.ebean.test.ForTests
- ForTests.RollbackAll - Class in io.ebean.test
-
A wrapping transaction used in test code to rollback all changes.
I
- io.ebean.test - package io.ebean.test
- io.ebean.test.config - package io.ebean.test.config
- io.ebean.test.config.platform - package io.ebean.test.config.platform
- io.ebean.test.config.provider - package io.ebean.test.config.provider
L
- LoggedSql - Class in io.ebean.test
-
Provides access to the messages logged to
io.ebean.SQL. - LoggedSql() - Constructor for class io.ebean.test.LoggedSql
N
- noTransactional(Runnable) - Static method in class io.ebean.test.ForTests
-
Run the closure with
@Transactionalmethods effectively disabled (they won't create/commit transactions).
O
- of(Object) - Static method in class io.ebean.test.DbJson
-
Create a PrettyJson object that has the JSON form of the entity bean or beans.
P
- PlatformAutoConfig - Class in io.ebean.test.config.platform
- PlatformAutoConfig(String, DatabaseConfig) - Constructor for class io.ebean.test.config.platform.PlatformAutoConfig
- postConfigure(DatabaseConfig) - Method in class io.ebean.test.config.AutoConfigureForTesting
- preConfigure(DatabaseConfig) - Method in class io.ebean.test.config.AutoConfigureForTesting
- ProviderAutoConfig - Class in io.ebean.test.config.provider
-
Auto configuration of User and Tenant providers and Encrypt key manager for testing purposes.
- ProviderAutoConfig(DatabaseConfig) - Constructor for class io.ebean.test.config.provider.ProviderAutoConfig
R
- readResource(String) - Static method in class io.ebean.test.DbJson
-
Read the content for the given resource path.
- replace(String...) - Method in class io.ebean.test.DbJson.PrettyJson
-
Replace the values of the given properties with a placeholder value.
- reset() - Static method in class io.ebean.test.UserContext
-
Clear both the current userId and tenantId.
- rollbackAll(Runnable) - Static method in class io.ebean.test.ForTests
-
All transactions started in the closure are effectively rolled back.
- run() - Method in class io.ebean.test.config.platform.PlatformAutoConfig
-
Run setting up for testing.
- run() - Method in class io.ebean.test.config.provider.ProviderAutoConfig
S
- set(Object, String) - Static method in class io.ebean.test.UserContext
-
Set both the current userId and current tenantId.
- setTenantId(Object) - Static method in class io.ebean.test.UserContext
-
Set the current tenantId.
- setUserId(Object) - Static method in class io.ebean.test.UserContext
-
Set the current userId - this value is put into 'WhoCreated' and 'WhoModified' properties.
- start() - Static method in class io.ebean.test.LoggedSql
-
Start the capture of the
io.ebean.SQLmessages. - stop() - Static method in class io.ebean.test.LoggedSql
-
Stop the capture of the
io.ebean.SQLmessages and return the messages/sql that was captured since the call to start().
U
- UserContext - Class in io.ebean.test
-
Use in test code when the CurrentUserProvider and/or CurrentTenantProvider were configured by this ebean-test-config plugin.
W
- withPlaceholder(String) - Method in class io.ebean.test.DbJson.PrettyJson
-
Set the placeHolder to use when replacing property values.
All Classes All Packages