public class AttachToDatabase
extends org.junit.rules.TestWatcher
DatabaseContainer
to activate this rule in your tests.
Note that our current intention is to only run these tests against PostgreSQL. As such these tests will not work with
other databases out of the box. Further changes may be required.DatabaseContainer
Constructor and Description |
---|
AttachToDatabase(MockitoContainer mockitoContainer)
Instead of instantiating this directly, you probably want to use
DatabaseContainer.rule(Object) |
Modifier and Type | Method and Description |
---|---|
protected void |
finished(org.junit.runner.Description description) |
OfBizDelegator |
getOfBizDelegator() |
QueryDslAccessor |
getQueryDslAccessor() |
protected void |
starting(org.junit.runner.Description description) |
protected void |
succeeded(org.junit.runner.Description description) |
public AttachToDatabase(MockitoContainer mockitoContainer)
DatabaseContainer.rule(Object)
mockitoContainer
- the container to load components intoprotected void starting(org.junit.runner.Description description)
starting
in class org.junit.rules.TestWatcher
protected void succeeded(org.junit.runner.Description description)
succeeded
in class org.junit.rules.TestWatcher
protected void finished(org.junit.runner.Description description)
finished
in class org.junit.rules.TestWatcher
public QueryDslAccessor getQueryDslAccessor()
public OfBizDelegator getOfBizDelegator()
Copyright © 2002-2019 Atlassian. All Rights Reserved.