@Test public void testParseFail() { testFail(new Runnable() { public void run() { parseMap("{"); } }, "Must fail for invalid bracket"); testFail(new Runnable() { public void run() { parseMap("}"); } }, "Must fail for invalid bracket"); testFail(new Runnable() { public void run() { parseMap("a=b}"); } }, "Must fail for invalid bracket"); testFail(new Runnable() { public void run() { parseMap("a=b,"); } }, "Must fail for invalid entry"); testFail(new Runnable() { public void run() { parseMap("a=b,="); } }, "Must fail for invalid bracket"); testFail(new Runnable() { public void run() { parseMap("a=b,=d"); } }, "Must fail for invalid bracket"); testFail(new Runnable() { public void run() { parseMap(","); } }, "Must fail for invalid comma"); testFail(new Runnable() { public void run() { parseMap(",,"); } }, "Must fail for invalid comma"); testFail(new Runnable() { public void run() { parseMap("a=b,c={d"); } }, "Must fail for invalid bracket"); testFail(new Runnable() { public void run() { parseMap("a={b,c=d}"); } }, "Must fail for invalid bracket"); }
public static Map<String, Object> parseMap(String string, ConnectorMessages cm) { return parseMapInternal(string, cm); }
MapParser { public static Map<String, Object> parseMap(String string, ConnectorMessages cm) { return parseMapInternal(string, cm); } }
MapParser { public static Map<String, Object> parseMap(String string, ConnectorMessages cm) { return parseMapInternal(string, cm); } private  MapParser(); }
MapParser { public static Map<String, Object> parseMap(String string, ConnectorMessages cm) { return parseMapInternal(string, cm); } private  MapParser(); static Map<String, Object> parseMap(String string, ConnectorMessages cm); }
MapParser { public static Map<String, Object> parseMap(String string, ConnectorMessages cm) { return parseMapInternal(string, cm); } private  MapParser(); static Map<String, Object> parseMap(String string, ConnectorMessages cm);  }