JAVA-20163 Add instruction for running Morphia Test manually (#14128)

Co-authored-by: timis1 <noreplay@yahoo.com>
This commit is contained in:
timis1 2023-05-26 23:51:17 +03:00 committed by GitHub
parent 1c9c15b203
commit cd86d338ff
1 changed files with 7 additions and 1 deletions

View File

@ -31,7 +31,13 @@ import dev.morphia.query.FindOptions;
import dev.morphia.query.Query;
import dev.morphia.query.experimental.updates.UpdateOperators;
public class MorphiaIntegrationTest {
/**
* 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
* much the seme functionality as on linux)
* 2. Secondly run a mongodb instance: with this command: docker run -d --rm -p 27017:27017 --name mongo2 mongo:5
* 3. Thirdly run this test
*/
public class MorphiaManualTest {
private static Datastore datastore;
private static ObjectId id = new ObjectId();