@Test public void test_Constructor_URI_DefaultCollection() throws URISyntaxException, IOException { String database = createUniqueName(); MongoClientURI clientURI = generateURI(host, port, database); MongoSchemaDBStore store = new MongoSchemaDBStore(clientURI); try { assertThat(store.collection.getDB().getName(), is(equalTo(database))); assertThat(store.collection.getName(), is(equalTo(DEFAULT_collectionName))); } finally { store.close(); client.dropDatabase(database); } }
@Override public void close() { client.close(); }
MongoSchemaDBStore implements MongoSchemaStore { @Override public void close() { client.close(); } }
MongoSchemaDBStore implements MongoSchemaStore { @Override public void close() { client.close(); } MongoSchemaDBStore(String uri);  MongoSchemaDBStore(MongoClientURI uri); }
MongoSchemaDBStore implements MongoSchemaStore { @Override public void close() { client.close(); } MongoSchemaDBStore(String uri);  MongoSchemaDBStore(MongoClientURI uri); @Override void storeSchema(SimpleFeatureType schema); @Override SimpleFeatureType retrieveSchema(Name name); @Override void deleteSchema(Name name); @Override List<String> typeNames(); @Override void close(); }
MongoSchemaDBStore implements MongoSchemaStore { @Override public void close() { client.close(); } MongoSchemaDBStore(String uri);  MongoSchemaDBStore(MongoClientURI uri); @Override void storeSchema(SimpleFeatureType schema); @Override SimpleFeatureType retrieveSchema(Name name); @Override void deleteSchema(Name name); @Override List<String> typeNames(); @Override void close();  }