Skip to content

Commit bc7dc4d

Browse files
committed
1 parent 5ef1ac2 commit bc7dc4d

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<modelVersion>4.0.0</modelVersion>
55
<groupId>com.github.database-rider</groupId>
66
<artifactId>getting-started</artifactId>
7-
<version>1.2.0</version>
7+
<version>1.2.5</version>
88

99
<properties>
1010
<ds.version>1.8.0</ds.version>

src/main/docs/index.adoc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ Just add following dependency to your classpath:
370370
<dependency>
371371
<groupId>com.github.database-rider</groupId>
372372
<artifactId>rider-junit5</artifactId>
373-
<version>1.0.0-RC2</version>
373+
<version>1.2.5</version>
374374
<scope>test</scope>
375375
</dependency>
376376
----
@@ -444,6 +444,8 @@ include::{metainf}/apache-deltaspike.properties[]
444444

445445
The test itself must be a CDI bean so Database Rider can intercept it.
446446

447+
IMPORTANT: When using above configuration the JUnit `@Before` will not work as expected, see https://lists.apache.org/thread.html/60ae2ade9ff8c5588a53a138b64c94e505455185358c21f663a5fd33@%3Cusers.deltaspike.apache.org%3E[discussion here^].
448+
447449
The last configuration needed is to produce a EntityManager for tests:
448450

449451
[source,java,linenums]
@@ -459,7 +461,7 @@ Here is a test example:
459461

460462
[source,java,linenums]
461463
----
462-
include::{testdir}/cdi/DBUnitRulesCDITest.java[tags=sample]
464+
include::{testdir}/cdi/DatabaseRiderCDITest.java[tags=sample]
463465
}
464466
----
465467
<1> DeltaSpike JUnit runner that enables CDI in tests;

0 commit comments

Comments
 (0)