@CompileStatic class EmbeddedMongoVersions extends java.lang.Object
Names the MongoDB release line the embedded server runs for the version a build asks for.
A build asks for a MongoDB with the mongodbContainerVersion system property, as a
container image tag such as 7.0.19 or 9.0. The embedded server names releases
differently, by the lines the flapdoodle library knows: V7_0, V8_0. The line a
tag names is used when flapdoodle has it, and the newest line below it otherwise, so a build
against a MongoDB that flapdoodle does not run yet still serves its replica-set specifications
from the closest release flapdoodle does run, rather than failing before a server starts.
| Type Params | Return Type | Name and description |
|---|---|---|
|
static java.lang.String |
lineFor(java.lang.String mongoVersion)The name of the flapdoodle release line the embedded server should run for a MongoDB version. |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#equals(java.lang.Object), java.lang.Object#getClass(), java.lang.Object#hashCode(), java.lang.Object#notify(), java.lang.Object#notifyAll(), java.lang.Object#toString(), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int) |
The name of the flapdoodle release line the embedded server should run for a MongoDB version.
When an older line stands in for the one the version names, a line on standard error says
so. It is written there rather than logged so that it reaches the test output whatever SLF4J
binding the tests run with, slf4j-nop or none at all included.
mongoVersion - a MongoDB version, as a container image tag such as 8.0 or 7.0.19V8_0: the line the version names when flapdoodle
has it, otherwise the newest line flapdoodle has below it