Arquillian Persistence Extension Implementation 1.0.0.Alpha4

org.jboss.arquillian.persistence.data.dbunit
Class DBUnitDataStateLogger

java.lang.Object
  extended by 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:


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: Created files are in DBUnit FlatXmlDataSet format.

This feature might be useful for test failures diagnostic / debugging.

Author:
Bartosz Majsak

Constructor Summary
DBUnitDataStateLogger()
           
 
Method Summary
 void aroundCleanup(org.jboss.arquillian.core.spi.EventContext<CleanupData> context)
           
 void aroundDataSeeding(org.jboss.arquillian.core.spi.EventContext<PrepareData> context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DBUnitDataStateLogger

public DBUnitDataStateLogger()
Method Detail

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

Arquillian Persistence Extension Implementation 1.0.0.Alpha4

Copyright © 2012 JBoss by Red Hat. All Rights Reserved.