use of com.github.joschi.jadconfig.JadConfig in project graylog2-server by Graylog2.
the class MongoDbConfigurationTest method validateSucceedsIfUriIsValid.
@Test
public void validateSucceedsIfUriIsValid() throws Exception {
MongoDbConfiguration configuration = new MongoDbConfiguration();
final Map<String, String> properties = singletonMap("mongodb_uri", "mongodb://example.com:1234,127.0.0.1:5678/TEST");
new JadConfig(new InMemoryRepository(properties), configuration).process();
assertEquals("mongodb://example.com:1234,127.0.0.1:5678/TEST", configuration.getMongoClientURI().toString());
}
Aggregations