InMemoryDatabaseRule


@UnstableApi
public final class InMemoryDatabaseRule implements TestRule


A JUnit Rule that creates (and cleans up) in-memory databases and SimpleCache instances.

Summary

Public methods

Statement
apply(Statement base, Description description)
static InMemoryDatabaseRule
DatabaseProvider

Returns the DatabaseProvider created by this rule.

SimpleCache

Returns a SimpleCache created by this rule.

Public methods

apply

public Statement apply(Statement base, Description description)

create

public static InMemoryDatabaseRule create()

createDatabaseProvider

public DatabaseProvider createDatabaseProvider()

Returns the DatabaseProvider created by this rule.

createSimpleCache

public SimpleCache createSimpleCache()

Returns a SimpleCache created by this rule.