Skip to content

Commit b6bb5c4

Browse files
timis1timis1
andauthored
JAVA-20163 Add instruction for running Morphia Test manually (eugenp#14128)
Co-authored-by: timis1 <[email protected]>
1 parent e27e16c commit b6bb5c4

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

persistence-modules/java-mongodb/src/test/java/com/baeldung/morphia/MorphiaIntegrationTest.java renamed to persistence-modules/java-mongodb/src/test/java/com/baeldung/morphia/MorphiaManualTest.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,13 @@
3131
import dev.morphia.query.Query;
3232
import dev.morphia.query.experimental.updates.UpdateOperators;
3333

34-
public class MorphiaIntegrationTest {
34+
/**
35+
* 1. Firstly you have to install a docker service where you can run a docker container. For Windows you can use Docker desktop (where you can have pretty
36+
* much the seme functionality as on linux)
37+
* 2. Secondly run a mongodb instance: with this command: docker run -d --rm -p 27017:27017 --name mongo2 mongo:5
38+
* 3. Thirdly run this test
39+
*/
40+
public class MorphiaManualTest {
3541

3642
private static Datastore datastore;
3743
private static ObjectId id = new ObjectId();

0 commit comments

Comments
 (0)