Index

A C D E F I J L N O P R S T U W 
All Classes and Interfaces|All Packages

A

asJson() - Method in class io.ebean.test.DbJson.PrettyJson
Return the JSON content.
assertContains(JsonNode, JsonNode) - Static method in class io.ebean.test.Json
Assert all the fields in the expectedJson are present in actualJson and values match.
assertContains(String) - Method in class io.ebean.test.DbJson.PrettyJson
Assert the DB json contains the given json content.
assertContains(String, String) - Static method in class io.ebean.test.Json
Assert all the fields in the expectedJson are present in actualJson and values match.
Assert contains - Search tag in class io.ebean.test.DbJson
Section
Assert contains - Search tag in io.ebean.test.DbJson.of(Object)
Section
assertContainsResource(String) - Method in class io.ebean.test.DbJson.PrettyJson
Assert the DB Json contains the Json at the given resource path.
assertContentMatches(String) - Method in class io.ebean.test.DbJson.PrettyJson
Assert the json exactly matches the content at the given resource path.
Assert content matches - Search tag in class io.ebean.test.DbJson
Section
Assert content matches - Search tag in io.ebean.test.DbJson.of(Object)
Section
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 is as expected.
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 @Transactional methods.

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 - module io.ebean.test
 
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
 

J

Json - Class in io.ebean.test
Helper to convert to and from json using Jackson object mapper and perform some useful asserts based on json content.
Json() - Constructor for class io.ebean.test.Json
 
Json.Resource - Class in io.ebean.test
For reading resource json content into a bean, list or jsonNode in a fluid style.

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 @Transactional methods 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, DatabaseBuilder.Settings) - Constructor for class io.ebean.test.config.platform.PlatformAutoConfig
 
postConfigure(DatabaseBuilder) - Method in class io.ebean.test.config.AutoConfigureForTesting
 
preConfigure(DatabaseBuilder) - 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(DatabaseBuilder.Settings) - Constructor for class io.ebean.test.config.provider.ProviderAutoConfig
 

R

read(Class<T>, String) - Static method in class io.ebean.test.Json
Return a typed object from json content.
readFromResource(Class<T>, String) - Static method in class io.ebean.test.Json
Return a bean from json content of a resource path.
readList(Class<T>, String) - Static method in class io.ebean.test.Json
Return a list of a given type from json content.
readNode(String) - Static method in class io.ebean.test.Json
Parse json into a generic JsonNode structure.
readNodeFromResource(String) - Static method in class io.ebean.test.Json
Parse json into a generic JsonNode structure from resource.
readResource(String) - Static method in class io.ebean.test.DbJson
Read the content for the given resource path.
readResource(String) - Static method in class io.ebean.test.Json
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.
resource(String) - Static method in class io.ebean.test.Json
For fluid style reading resource json content and return as a bean, list of bean or JsonNode.
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.SQL messages.
stop() - Static method in class io.ebean.test.LoggedSql
Stop the capture of the io.ebean.SQL messages and return the messages/sql that was captured since the call to start().

T

toJsonString(Object) - Static method in class io.ebean.test.Json
Serialize object to string

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.
A C D E F I J L N O P R S T U W 
All Classes and Interfaces|All Packages