@Test public void testBasicGetters() throws MalformedURLException { assertEquals("CSV", csvDataStoreFactory.getDisplayName()); assertEquals("Comma delimited text file", csvDataStoreFactory.getDescription()); assertTrue(csvDataStoreFactory.canProcess(locationsResource)); assertTrue(csvDataStoreFactory.getImplementationHints().isEmpty()); assertArrayEquals(new String[] {".csv"}, csvDataStoreFactory.getFileExtensions()); assertNotNull("Invalid Parameter Info", csvDataStoreFactory.getParametersInfo()); }
@Test public void testCanProcessURLParams() { Map<String, Serializable> urlParams = new HashMap<String, Serializable>(1); urlParams.put("url", locationsResource); assertTrue("Did not process url params", csvDataStoreFactory.canProcess(urlParams)); }
@Test public void testCanProcessFileParams() { Map<String, Serializable> fileParams = new HashMap<String, Serializable>(1); fileParams.put("file", file); assertTrue("Did not process file params", csvDataStoreFactory.canProcess(fileParams)); }