org.exist.fluent
Class DatabaseTestCase
java.lang.Object
org.exist.fluent.DatabaseTestCase
@DatabaseTestCase.ConfigFile(value="conf.xml")
public abstract class DatabaseTestCase
- extends Object
A superclass for database unit tests. It takes care of starting up and clearing the database in
its setUp
method, and supports mocking with jMock. By default, the database
will be configured from the file "conf.xml" in the current directory, but you can annotate your
test class with DatabaseTestCase.ConfigFile
to specify a different one.
- Author:
- Piotr Kaminski
Nested Class Summary |
static interface |
DatabaseTestCase.ConfigFile
An annotation that specifies the path of the config file to use when setting up the database
for a test. |
DatabaseTestCase
public DatabaseTestCase()
startupDatabase
public void startupDatabase()
throws Exception
- Throws:
Exception
shutdownDatabase
public static void shutdownDatabase()
throws Exception
- Throws:
Exception
Copyright (C) All rights reserved.