Class CliMongoTestInstance
java.lang.Object
dev.getelements.elements.dao.mongo.test.CliMongoTestInstance
- All Implemented Interfaces:
MongoTestInstance,AutoCloseable
- Direct Known Subclasses:
DockerMongoTestInstance,SslCliMongoTestInstance
-
Field Summary
FieldsFields inherited from interface dev.getelements.elements.dao.mongo.test.MongoTestInstance
ELEMENTS_TESTED_VERSION -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Closes and stops this mongo instanceprotected abstract voidlog(Supplier<InputStream> inputStreamSupplier, Consumer<String> messageConsumer) protected ProcessnewInitializeProcess(String uuid) protected abstract ProcessnewProcess(String uuid) voidstart()Starts the test instance.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.getelements.elements.dao.mongo.test.MongoTestInstance
stop
-
Field Details
-
port
protected final int port -
version
-
-
Constructor Details
-
CliMongoTestInstance
-
-
Method Details
-
start
public void start()Description copied from interface:MongoTestInstanceStarts the test instance.- Specified by:
startin interfaceMongoTestInstance
-
newProcess
- Throws:
IOException
-
newInitializeProcess
- Throws:
IOException
-
close
public void close()Description copied from interface:MongoTestInstanceCloses and stops this mongo instance- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceMongoTestInstance
-
kill
-
log
-