org.jboss.arquillian.persistence.data.dbunit
Class DBUnitDataStateLogger
java.lang.Object
org.jboss.arquillian.persistence.data.dbunit.DBUnitDataStateLogger
- All Implemented Interfaces:
- DataStateLogger
public class DBUnitDataStateLogger
- extends Object
- implements DataStateLogger
Dumps database state during test method invocation, covering
following phases:
- before seeding database using provided data sets
- after seeding database
- after test execution
- after cleaning database state
If not configured otherwise it will create following files in the
java.io.tmpdir directory using following pattern:
[full class name]#[test name]-[phase suffix].xml,
where phase suffix is one of the following:
- before-seed
- after-seed
- after-test
- after-clean
Created files are in DBUnit FlatXmlDataSet format.
This feature might be useful for test failures diagnostic / debugging.
- Author:
- Bartosz Majsak
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DBUnitDataStateLogger
public DBUnitDataStateLogger()
aroundDataSeeding
public void aroundDataSeeding(@Observes
org.jboss.arquillian.core.spi.EventContext<PrepareData> context)
- Specified by:
aroundDataSeeding in interface DataStateLogger
aroundCleanup
public void aroundCleanup(@Observes
org.jboss.arquillian.core.spi.EventContext<CleanupData> context)
- Specified by:
aroundCleanup in interface DataStateLogger
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.