injectables.addValue("logger", logger);
// Create the strategy.
JacksonCouchJsonStrategy jsonStrategy = new JacksonCouchJsonStrategy(new JodaModule());
jsonStrategy.setCouchInjectables(injectables);
CouchSetup couchSetup = new CouchSetup(couchUrl)
.setUserName(TestSetup.userName)
.setPassword(TestSetup.password)
.setHttpClient(JerseyCouchHttpClient.class)
.setJsonStrategy(jsonStrategy);
if (couchUrl.startsWith("https")) {
File moduleDir = IOUtil.findDirNear(IOUtil.currentDir(), "couchace-all");
File keystoreFile = new File(moduleDir, "src/test/resources/couch-test.jks");
couchSetup.ssl(keystoreFile.getAbsolutePath(), TestSetup.storePass);
}
CouchServer couchServer = new CouchServer(couchSetup);
couchDatabase = couchServer.database(TestSetup.databaseName);