Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/main/docs/index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ include::{testdir}/DatabaseRiderCoreTest.java[tags=declaration;sample]
----
<1> EntityManagerProvider is a JUnit rule that initializes a JPA entity manager before each *test class*. `riderDB` is the name of persistence unit;
<2> DBUnit rule reads *@DataSet* annotations and initializes database before each *test method*. This rule only needs a *JDBC* connection to be created.
<3> The dataSet configuration itself, https://github.com/database-rider/database-rider/blob/master/core/src/main/java/com/github/database/riderapi/dataset/DataSet.java#L14[see here^] for all available configuration options. Note that you can provide a comma separated list of datasets names here.
<3> The dataSet configuration itself, https://github.com/database-rider/database-rider/blob/master/rider-core/src/main/java/com/github/database/rider/core/api/dataset/DataSet.java#L14[see here^] for all available configuration options. Note that you can provide a comma separated list of datasets names here.
<4> *em()* is a shortcut (`import static com.github.database.rider.core.util.EntityManagerProvider.em;`) for the EntityManager that was initialized by EntityManagerProvider rule.

TIP: There is a lot of https://github.com/database-rider/database-rider/tree/master/rider-core/src/test/java/com/github/database/rider/core[example tests here^].
Expand Down