Skip to content

Usage of Annotation DBUnitSupport

Florian edited this page Jul 2, 2014 · 4 revisions

Introduction

With the annotation you get the possibility to use some basic DBUnit features.

  • insert of table content
  • store table content to XML files

See also the source code DBUnitSupport

Features

  • saveFileAfterRun
    specifiy the location of the export file. If the value is empty no table export can be done.
    Should be used together with saveTableAfterRun.
    Default value is empty string

  • saveTableAfterRun
    Specify the tablename and the corresponding SQL select statement to store the result table result.
    Default value is a empty list

  • loadFileForRun
    Use a DBUnit command and a specifiy XML DBUnit file together.
    For one file you must specify two entries one for the command and one for the locatioon of the file.
    Example: "INSERT","mydir/mytestinserts.xml"
    Default value is a empty list