Class MockStatementFactory

java.lang.Object
org.dbunit.database.statement.MockStatementFactory
All Implemented Interfaces:
IStatementFactory

public class MockStatementFactory extends Object implements IStatementFactory
Mock implementation of IStatementFactory for use in unit tests. Tracks the number of statement creation calls and delegates to a configured IBatchStatement.

Use forSingleBatch(String...) to create a fully-wired factory expecting exactly one batch execution of the given SQL statements, reducing per-test setup boilerplate.

Since:
Mar 16, 2002
Version:
$Revision$
Author:
Manuel Laflamme