@Test public void testCanProcess() { assertFalse(dsf.canProcess(params)); params.put(SDMXDataStoreFactory.NAMESPACE_PARAM.key, Helper.NAMESPACE); assertFalse(dsf.canProcess(params)); params.put(SDMXDataStoreFactory.PROVIDER_PARAM.key, Helper.PROVIDER_OLD); assertTrue(dsf.canProcess(params)); params.put(SDMXDataStoreFactory.USER_PARAM.key, Helper.USER); assertTrue(dsf.canProcess(params)); params.put(SDMXDataStoreFactory.PASSWORD_PARAM.key, Helper.PASSWORD); assertTrue(dsf.canProcess(params)); }
@Override public boolean canProcess(Map<String, Serializable> params) { try { new URL((String) params.get(SDMXDataStoreFactory.NAMESPACE_PARAM.key)); } catch (MalformedURLException e) { return false; } if (params.get(SDMXDataStoreFactory.PROVIDER_PARAM.key) == null || ((String) params.get(SDMXDataStoreFactory.PROVIDER_PARAM.key)).length() < 1) { return false; } return true; }
SDMXDataStoreFactory implements DataStoreFactorySpi { @Override public boolean canProcess(Map<String, Serializable> params) { try { new URL((String) params.get(SDMXDataStoreFactory.NAMESPACE_PARAM.key)); } catch (MalformedURLException e) { return false; } if (params.get(SDMXDataStoreFactory.PROVIDER_PARAM.key) == null || ((String) params.get(SDMXDataStoreFactory.PROVIDER_PARAM.key)).length() < 1) { return false; } return true; } }
SDMXDataStoreFactory implements DataStoreFactorySpi { @Override public boolean canProcess(Map<String, Serializable> params) { try { new URL((String) params.get(SDMXDataStoreFactory.NAMESPACE_PARAM.key)); } catch (MalformedURLException e) { return false; } if (params.get(SDMXDataStoreFactory.PROVIDER_PARAM.key) == null || ((String) params.get(SDMXDataStoreFactory.PROVIDER_PARAM.key)).length() < 1) { return false; } return true; }  }
SDMXDataStoreFactory implements DataStoreFactorySpi { @Override public boolean canProcess(Map<String, Serializable> params) { try { new URL((String) params.get(SDMXDataStoreFactory.NAMESPACE_PARAM.key)); } catch (MalformedURLException e) { return false; } if (params.get(SDMXDataStoreFactory.PROVIDER_PARAM.key) == null || ((String) params.get(SDMXDataStoreFactory.PROVIDER_PARAM.key)).length() < 1) { return false; } return true; }  @Override DataStore createNewDataStore(Map<String, Serializable> params); @Override DataStore createDataStore(Map<String, Serializable> params); @Override String getDisplayName(); @Override String getDescription(); @Override Param[] getParametersInfo(); @Override boolean canProcess(Map<String, Serializable> params); @Override boolean isAvailable(); @Override Map<Key, ?> getImplementationHints(); }
SDMXDataStoreFactory implements DataStoreFactorySpi { @Override public boolean canProcess(Map<String, Serializable> params) { try { new URL((String) params.get(SDMXDataStoreFactory.NAMESPACE_PARAM.key)); } catch (MalformedURLException e) { return false; } if (params.get(SDMXDataStoreFactory.PROVIDER_PARAM.key) == null || ((String) params.get(SDMXDataStoreFactory.PROVIDER_PARAM.key)).length() < 1) { return false; } return true; }  @Override DataStore createNewDataStore(Map<String, Serializable> params); @Override DataStore createDataStore(Map<String, Serializable> params); @Override String getDisplayName(); @Override String getDescription(); @Override Param[] getParametersInfo(); @Override boolean canProcess(Map<String, Serializable> params); @Override boolean isAvailable(); @Override Map<Key, ?> getImplementationHints(); static final String FACTORY_NAME; static final String FACTORY_DESCRIPTION; static int CONCURRENCY; static final Param NAMESPACE_PARAM; static final Param PROVIDER_PARAM; static final Param CONCURRENCY_PARAM; static final Param USER_PARAM; static final Param PASSWORD_PARAM; }