Map<String, String> optionsMap = handle.getValuesMap(); optionsMap.keySet().forEach( optionsName -> { Map<String, String> finalOptionsMap = finalHandle.getValuesMap(); finalOptionsMap.keySet().forEach( optionsName -> {
@Test public void testInitialization() { new QueryOptionsListHandle().getValuesMap(); } }
public void serverOptionsList() throws IOException, ParserConfigurationException, SAXException { QueryManager queryMgr = Common.client.newQueryManager(); QueryOptionsListHandle results = queryMgr.optionsList(new QueryOptionsListHandle()); assertNotNull(results); Map<String,String> map = results.getValuesMap(); assertEquals("Map should contain two keys", map.size(), 2); assertEquals("photos should have this uri", map.get("photos"), "/v1/config/query/photos"); }
@Test public void testNPE() throws KeyManagementException, NoSuchAlgorithmException, IOException, SAXException, ParserConfigurationException { System.out.println("Running testNPE"); // connect the client DatabaseClient client = getDatabaseClient("rest-admin", "x", getConnType()); QueryOptionsListHandle handle = new QueryOptionsListHandle(); Map map = handle.getValuesMap(); // release client client.release(); }