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 TypeMethodDescriptionvoid
close()
Closes and stops this mongo instanceprotected abstract void
log
(Supplier<InputStream> inputStreamSupplier, Consumer<String> messageConsumer) protected Process
newInitializeProcess
(String uuid) protected abstract Process
newProcess
(String uuid) void
start()
Starts the test instance.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:MongoTestInstance
Starts the test instance.- Specified by:
start
in interfaceMongoTestInstance
-
newProcess
- Throws:
IOException
-
newInitializeProcess
- Throws:
IOException
-
close
public void close()Description copied from interface:MongoTestInstance
Closes and stops this mongo instance- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceMongoTestInstance
-
kill
-
log
-