org.exist.fluent
Class DatabaseTestCase

java.lang.Object
  extended by 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.
 
Constructor Summary
DatabaseTestCase()
           
 
Method Summary
static void shutdownDatabase()
           
 void startupDatabase()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DatabaseTestCase

public DatabaseTestCase()
Method Detail

startupDatabase

public void startupDatabase()
                     throws Exception
Throws:
Exception

shutdownDatabase

public static void shutdownDatabase()
                             throws Exception
Throws:
Exception


Copyright (C) All rights reserved.