@Test public void testInvalidParamsCreation() throws Exception { Map<String, Serializable> params = new HashMap<String, Serializable>(0); try { csvDataStoreFactory.createDataStore(params); } catch (IllegalArgumentException e) { assertTrue(true); return; } catch (Exception e) { } assertTrue("Did not throw illegal argument exception for null file", false); }
@Override public FileDataStore createDataStore(Map<String, Serializable> params) throws IOException { File file = fileFromParams(params); URI namespace = (URI) NAMESPACEP.lookUp(params); return createDataStoreFromFile(file, namespace); }
CSVDataStoreFactory implements FileDataStoreFactorySpi { @Override public FileDataStore createDataStore(Map<String, Serializable> params) throws IOException { File file = fileFromParams(params); URI namespace = (URI) NAMESPACEP.lookUp(params); return createDataStoreFromFile(file, namespace); } }
CSVDataStoreFactory implements FileDataStoreFactorySpi { @Override public FileDataStore createDataStore(Map<String, Serializable> params) throws IOException { File file = fileFromParams(params); URI namespace = (URI) NAMESPACEP.lookUp(params); return createDataStoreFromFile(file, namespace); }  }
CSVDataStoreFactory implements FileDataStoreFactorySpi { @Override public FileDataStore createDataStore(Map<String, Serializable> params) throws IOException { File file = fileFromParams(params); URI namespace = (URI) NAMESPACEP.lookUp(params); return createDataStoreFromFile(file, namespace); }  @Override String getDisplayName(); @Override String getDescription(); @Override Param[] getParametersInfo(); @Override boolean canProcess(Map<String, Serializable> params); @Override boolean isAvailable(); @Override Map<Key, ?> getImplementationHints(); FileDataStore createDataStoreFromFile(File file); FileDataStore createDataStoreFromFile(File file, URI namespace); @Override FileDataStore createDataStore(Map<String, Serializable> params); @Override DataStore createNewDataStore(Map<String, Serializable> params); @Override FileDataStore createDataStore(URL url); @Override String[] getFileExtensions(); @Override boolean canProcess(URL url); @Override String getTypeName(URL url); }
CSVDataStoreFactory implements FileDataStoreFactorySpi { @Override public FileDataStore createDataStore(Map<String, Serializable> params) throws IOException { File file = fileFromParams(params); URI namespace = (URI) NAMESPACEP.lookUp(params); return createDataStoreFromFile(file, namespace); }  @Override String getDisplayName(); @Override String getDescription(); @Override Param[] getParametersInfo(); @Override boolean canProcess(Map<String, Serializable> params); @Override boolean isAvailable(); @Override Map<Key, ?> getImplementationHints(); FileDataStore createDataStoreFromFile(File file); FileDataStore createDataStoreFromFile(File file, URI namespace); @Override FileDataStore createDataStore(Map<String, Serializable> params); @Override DataStore createNewDataStore(Map<String, Serializable> params); @Override FileDataStore createDataStore(URL url); @Override String[] getFileExtensions(); @Override boolean canProcess(URL url); @Override String getTypeName(URL url); static final String[] EXTENSIONS; static final Param FILE_PARAM; static final Param URL_PARAM; static final Param NAMESPACEP; static final Param[] parametersInfo; }