Skip to content

Commit 3c6b057

Browse files
author
rmpestano
committed
update docs
1 parent acae795 commit 3c6b057

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/main/docs/index.adoc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ First thing to do is to add Database Rider core module to your test classpath:
3535

3636

3737
----
38-
include::{basedir}/pom.xml[tags=rider-core]
38+
include::{basedir}/pom.xml[tags=rider-core, subs="attributes"]
3939
----
4040

4141
Secondly we need a database, for testing I recommend http://hsqldb.org/[HSQLDB^] which is a very fast in-memory database, here is its maven dependency:
@@ -357,6 +357,8 @@ include::{testdir}/MultipleDataBasesTest.java[]
357357
<2> here we match dataset executor id in @DataSet annotation so in this test we are going to use database from `pu1`.
358358
<3> For multiple databases in same test we need to initialize database state `programmatically` instead of using annotations.
359359

360+
TIP: Prefer https://github.com/database-rider/database-rider#riderdsl[RiderDSL^] to initiallize datassets programmatically.
361+
360362
== Riding database in *JUnit 5* tests
361363

362364
http://junit.org/junit5/[JUnit 5^] is the new version of JUnit and comes with a new extension model, so instead of `rules` you will use `extensions` in your tests. Database Rider comes with a JUnit 5 extension which enables DBUnit.
@@ -370,7 +372,7 @@ Just add following dependency to your classpath:
370372
<dependency>
371373
<groupId>com.github.database-rider</groupId>
372374
<artifactId>rider-junit5</artifactId>
373-
<version>1.2.5</version>
375+
<version>1.19.0</version>
374376
<scope>test</scope>
375377
</dependency>
376378
----

0 commit comments

Comments
 (0)