You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
<2> here we match dataset executor id in @DataSet annotation so in this test we are going to use database from `pu1`.
358
358
<3> For multiple databases in same test we need to initialize database state `programmatically` instead of using annotations.
359
359
360
+
TIP: Prefer https://github.com/database-rider/database-rider#riderdsl[RiderDSL^] to initiallize datassets programmatically.
361
+
360
362
== Riding database in *JUnit 5* tests
361
363
362
364
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:
0 commit comments