@Test public void testTypeName() { assertThat(typeName(new File("testMe.json")), is(equalTo("testMe"))); assertThat(typeName(new File("c:/testMe.json")), is(equalTo("testMe"))); assertThat( typeName( new File("/opt/tomcat/webapps/data/mongodb-schemas/teststore/testMe.json")), is(equalTo("testMe"))); }
static String typeName(File schemaFile) { String typeName = schemaFile.getName(); return typeName.substring(0, typeName.length() - SUFFIX_json.length()); }
MongoSchemaFileStore implements MongoSchemaStore { static String typeName(File schemaFile) { String typeName = schemaFile.getName(); return typeName.substring(0, typeName.length() - SUFFIX_json.length()); } }
MongoSchemaFileStore implements MongoSchemaStore { static String typeName(File schemaFile) { String typeName = schemaFile.getName(); return typeName.substring(0, typeName.length() - SUFFIX_json.length()); } MongoSchemaFileStore(String uri);  MongoSchemaFileStore(URI uri);  MongoSchemaFileStore(File file); }
MongoSchemaFileStore implements MongoSchemaStore { static String typeName(File schemaFile) { String typeName = schemaFile.getName(); return typeName.substring(0, typeName.length() - SUFFIX_json.length()); } MongoSchemaFileStore(String uri);  MongoSchemaFileStore(URI uri);  MongoSchemaFileStore(File file); @Override void storeSchema(SimpleFeatureType schema); @Override SimpleFeatureType retrieveSchema(Name name); @Override void deleteSchema(Name name); @Override List<String> typeNames(); @Override void close(); }
MongoSchemaFileStore implements MongoSchemaStore { static String typeName(File schemaFile) { String typeName = schemaFile.getName(); return typeName.substring(0, typeName.length() - SUFFIX_json.length()); } MongoSchemaFileStore(String uri);  MongoSchemaFileStore(URI uri);  MongoSchemaFileStore(File file); @Override void storeSchema(SimpleFeatureType schema); @Override SimpleFeatureType retrieveSchema(Name name); @Override void deleteSchema(Name name); @Override List<String> typeNames(); @Override void close();  }