OrientDBDocumentConfiguration implements DocumentConfiguration { @Override public OrientDBDocumentCollectionManagerFactory get() { return new OrientDBDocumentCollectionManagerFactory(host, user, password, storageType); } OrientDBDocumentConfiguration(); void setHost(String host); void setUser(String user); void setPassword(String password); void setStorageType(String storageType); @Override OrientDBDocumentCollectionManagerFactory get(); @Override OrientDBDocumentCollectionManagerFactory get(Settings settings);  }
@Test public void shouldCreateByConfigurationFile() { OrientDBDocumentConfiguration configuration = new OrientDBDocumentConfiguration(); DocumentCollectionManagerFactory managerFactory = configuration.get(); assertNotNull(managerFactory); }
@Test public void shouldThrowExceptionWhenSettingsIsNull() { assertThrows(NullPointerException.class, () -> new OrientDBDocumentConfiguration().get(null)); }