public class AbstractDb4oTestCase extends java.lang.Object implements Db4oTestCase, TestLifeCycle
| Constructor and Description |
|---|
AbstractDb4oTestCase() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
assertOccurrences(java.lang.Class clazz,
int expected) |
protected void |
assertOccurrences(ExtObjectContainer oc,
java.lang.Class clazz,
int expected) |
protected ClassMetadata |
classMetadataFor(java.lang.Class clazz) |
protected void |
commit() |
protected Db4oTestSuiteBuilder |
concurrenyClientServerSuite(boolean embedded,
java.lang.String label) |
protected void |
configure(Configuration config) |
void |
configureThreadCount(int count) |
protected ObjectContainerBase |
container() |
protected Context |
context() |
protected int |
countOccurences(java.lang.Class clazz) |
protected int |
countOccurences(ExtObjectContainer oc,
java.lang.Class clazz) |
ExtObjectContainer |
db() |
protected void |
db4oSetupAfterStore() |
protected void |
db4oSetupBeforeConfigure() |
protected void |
db4oSetupBeforeStore() |
protected void |
db4oTearDownAfterClean() |
protected void |
db4oTearDownBeforeClean() |
protected void |
defragment() |
protected void |
deleteAll(java.lang.Class clazz) |
protected void |
deleteAll(ExtObjectContainer oc,
java.lang.Class clazz) |
protected void |
deleteObjectSet(ObjectContainer oc,
ObjectSet os) |
protected void |
deleteObjectSet(ObjectSet os) |
protected Db4oTestSuiteBuilder |
embeddedSuite() |
protected EventRegistry |
eventRegistry() |
protected EventRegistry |
eventRegistryFor(ExtObjectContainer container) |
LocalObjectContainer |
fileSession() |
static Db4oFixture |
fixture() |
protected <T> void |
foreach(java.lang.Class<T> clazz,
Visitor4<T> visitor) |
protected <T> void |
foreach(ExtObjectContainer container,
java.lang.Class<T> clazz,
Visitor4<T> visitor) |
protected void |
handleUncaughtExceptions(java.util.List<java.lang.Throwable> uncaughtExceptions) |
protected void |
indexField(Configuration config,
java.lang.Class clazz,
java.lang.String fieldName) |
protected Db4oTestSuiteBuilder |
inMemorySuite() |
protected boolean |
isEmbedded() |
boolean |
isMultiSession() |
protected boolean |
isNetworking() |
protected Db4oTestSuiteBuilder |
networkingSuite() |
protected Query |
newQuery() |
protected Query |
newQuery(java.lang.Class clazz) |
protected static Query |
newQuery(ExtObjectContainer oc) |
protected static Query |
newQuery(ExtObjectContainer oc,
java.lang.Class clazz) |
protected Query |
newQuery(Transaction transaction) |
protected Query |
newQuery(Transaction transaction,
java.lang.Class clazz) |
protected Transaction |
newTransaction() |
ExtObjectContainer |
openNewSession() |
protected ReflectClass |
reflectClass(java.lang.Class clazz) |
protected Reflector |
reflector() |
protected void |
reopen() |
<T> T |
retrieveOnlyInstance(java.lang.Class<T> clazz) |
static <T> T |
retrieveOnlyInstance(ExtObjectContainer oc,
java.lang.Class<T> clazz) |
int |
runAll() |
int |
runConcurrency() |
int |
runConcurrencyAll() |
int |
runEmbedded() |
int |
runEmbeddedConcurrency() |
int |
runInMemory() |
int |
runNetworking() |
int |
runSolo() |
int |
runSolo(java.lang.String testLabelSubstring) |
int |
runSoloAndClientServer() |
int |
runSoloAndEmbeddedClientServer() |
protected EventRegistry |
serverEventRegistry() |
void |
setUp() |
protected Db4oTestSuiteBuilder |
soloSuite() |
protected void |
store() |
void |
store(java.lang.Object obj) |
protected InternalObjectContainer |
stream() |
protected Transaction |
systemTrans() |
void |
tearDown() |
protected java.lang.Class[] |
testCases() |
int |
threadCount() |
Transaction |
trans() |
public static Db4oFixture fixture()
public boolean isMultiSession()
protected boolean isEmbedded()
protected boolean isNetworking()
public ExtObjectContainer openNewSession()
protected void reopen()
throws java.lang.Exception
java.lang.Exceptionpublic final void setUp()
throws java.lang.Exception
setUp in interface TestLifeCyclejava.lang.Exceptionpublic final void tearDown()
throws java.lang.Exception
tearDown in interface TestLifeCyclejava.lang.Exceptionprotected void handleUncaughtExceptions(java.util.List<java.lang.Throwable> uncaughtExceptions)
protected void db4oSetupBeforeConfigure()
throws java.lang.Exception
java.lang.Exceptionprotected void db4oSetupBeforeStore()
throws java.lang.Exception
java.lang.Exceptionprotected void db4oSetupAfterStore()
throws java.lang.Exception
java.lang.Exceptionprotected void db4oTearDownBeforeClean()
throws java.lang.Exception
java.lang.Exceptionprotected void db4oTearDownAfterClean()
throws java.lang.Exception
java.lang.Exceptionprotected void configure(Configuration config) throws java.lang.Exception
java.lang.Exceptionprotected void store()
throws java.lang.Exception
java.lang.Exceptionpublic ExtObjectContainer db()
protected java.lang.Class[] testCases()
public int runAll()
public int runSolo(java.lang.String testLabelSubstring)
public int runSoloAndClientServer()
public int runSoloAndEmbeddedClientServer()
public int runSolo()
public int runInMemory()
public int runNetworking()
public int runEmbedded()
public int runConcurrency()
public int runEmbeddedConcurrency()
public int runConcurrencyAll()
protected Db4oTestSuiteBuilder soloSuite()
protected Db4oTestSuiteBuilder inMemorySuite()
protected Db4oTestSuiteBuilder networkingSuite()
protected Db4oTestSuiteBuilder embeddedSuite()
protected Db4oTestSuiteBuilder concurrenyClientServerSuite(boolean embedded, java.lang.String label)
protected InternalObjectContainer stream()
protected ObjectContainerBase container()
public LocalObjectContainer fileSession()
public Transaction trans()
protected Transaction systemTrans()
protected Query newQuery(Transaction transaction, java.lang.Class clazz)
protected Query newQuery(Transaction transaction)
protected Query newQuery()
protected static Query newQuery(ExtObjectContainer oc)
protected Query newQuery(java.lang.Class clazz)
protected static Query newQuery(ExtObjectContainer oc, java.lang.Class clazz)
protected Reflector reflector()
protected void indexField(Configuration config, java.lang.Class clazz, java.lang.String fieldName)
protected Transaction newTransaction()
public <T> T retrieveOnlyInstance(java.lang.Class<T> clazz)
public static <T> T retrieveOnlyInstance(ExtObjectContainer oc, java.lang.Class<T> clazz)
protected int countOccurences(java.lang.Class clazz)
protected int countOccurences(ExtObjectContainer oc, java.lang.Class clazz)
protected void assertOccurrences(java.lang.Class clazz,
int expected)
protected void assertOccurrences(ExtObjectContainer oc, java.lang.Class clazz, int expected)
protected <T> void foreach(java.lang.Class<T> clazz,
Visitor4<T> visitor)
protected <T> void foreach(ExtObjectContainer container, java.lang.Class<T> clazz, Visitor4<T> visitor)
protected final void deleteAll(java.lang.Class clazz)
protected final void deleteAll(ExtObjectContainer oc, java.lang.Class clazz)
protected final void deleteObjectSet(ObjectSet os)
protected final void deleteObjectSet(ObjectContainer oc, ObjectSet os)
public final void store(java.lang.Object obj)
protected ClassMetadata classMetadataFor(java.lang.Class clazz)
protected ReflectClass reflectClass(java.lang.Class clazz)
protected void defragment()
throws java.lang.Exception
java.lang.Exceptionpublic final int threadCount()
public final void configureThreadCount(int count)
protected EventRegistry eventRegistry()
protected EventRegistry eventRegistryFor(ExtObjectContainer container)
protected EventRegistry serverEventRegistry()
protected Context context()
protected void commit()