Skip to content

Commit

Permalink
readme
Browse files Browse the repository at this point in the history
  • Loading branch information
rmpestano committed Aug 3, 2015
1 parent 2a5c241 commit dccf913
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ NOTE: https://github.com/rmpestano/dbunit-rules/blob/master/jpa/src/main/java/co
This module is the basis for subsequent modules. It contains a JUnit rule (shown above) to configure its main component, the *DataSet executor*.

=== DataSet executor
A DataSet executor is a component which creates DBUnit datasets. Datasets are "sets" of data (tables and rows) that represents the *state of the database*. DataSets can be represented in https://github.com/rmpestano/dbunit-rules/blob/master/core/src/test/resources/datasets/[textual files like csv, xml, yaml, json^] etc...
A DataSet executor is a component which creates DBUnit datasets. Datasets are "sets" of data (tables and rows) that represents the *state of the database*. DataSets can be represented in textual files like csv, xml, yaml, json, https://github.com/rmpestano/dbunit-rules/blob/master/core/src/test/resources/datasets/[see examples here^].

The dataset executor needs a JDBC connection to be instantiated. The connection can be provided at declaration level (as in example before) or via https://github.com/rmpestano/dbunit-rules/blob/master/core/src/main/java/com/github/dbunit/rules/connection/ConnectionHolder.java[ConnectionHolder interface^]:

Expand Down Expand Up @@ -342,7 +342,7 @@ Also note that the same can be done using @Rule but pay attention that you must
<dependency>
<groupId>com.github.dbunit-rules</groupId>
<artifactId>core</artifactId>
<version>0.1</version>
<version>0.2</version>
<scope>test</scope>
</dependency>
----
Expand Down Expand Up @@ -377,7 +377,7 @@ As stated before DBunit needs a jdbc connection, a way to create one is using JP
<dependency>
<groupId>com.github.dbunit-rules</groupId>
<artifactId>jpa</artifactId>
<version>0.1</version>
<version>0.2</version>
<scope>test</scope>
</dependency>
----
Expand Down Expand Up @@ -488,7 +488,7 @@ If you use CDI in your tests then you should have a try in DBUnit rules https://
<dependency>
<groupId>com.github.dbunit-rules</groupId>
<artifactId>cdi</artifactId>
<version>0.1</version>
<version>0.2</version>
<scope>test</scope>
</dependency>
----
Expand Down

0 comments on commit dccf913

Please sign in to comment.