public static final class Neo4jResourceManager.Builder extends TestContainerResourceManager.Builder<Neo4jResourceManager>
Neo4jResourceManager
.containerImageName, containerImageTag, host, port, testId, useStaticContainer
Modifier and Type | Method and Description |
---|---|
Neo4jResourceManager |
build()
Builds and returns a Resource Manager that extends TestContainerResourceManager.
|
Neo4jResourceManager.Builder |
setAdminPassword(java.lang.String password) |
Neo4jResourceManager.Builder |
setDatabaseName(java.lang.String databaseName)
Sets the database name to that of a static database instance.
|
Neo4jResourceManager.Builder |
setDatabaseName(java.lang.String databaseName,
DatabaseWaitOption waitOption)
Sets the database name to that of a static database instance and sets the wait policy.
|
setContainerImageName, setContainerImageTag, setHost, setPort, useStaticContainer
public Neo4jResourceManager.Builder setDatabaseName(java.lang.String databaseName)
Note: if a database name is set, and a static Neo4j server is being used (useStaticContainer() is also called on the builder), then a database will be created on the static server if it does not exist, and it will not be removed when cleanupAll() is called on the Neo4jResourceManager.
databaseName
- The database name.public Neo4jResourceManager.Builder setDatabaseName(java.lang.String databaseName, DatabaseWaitOption waitOption)
Note: if a database name is set, and a static Neo4j server is being used (useStaticContainer() is also called on the builder), then a database will be created on the static server if it does not exist, and it will not be removed when cleanupAll() is called on the Neo4jResourceManager.
DatabaseWaitOptions
exposes all configurable wait options
databaseName
- The database name.waitOption
- The database wait policy.public Neo4jResourceManager.Builder setAdminPassword(java.lang.String password)
public Neo4jResourceManager build()
TestContainerResourceManager.Builder
build
in class TestContainerResourceManager.Builder<Neo4jResourceManager>