@Test public void testJSONToParameterMapParsing() throws Exception { Map<String, String> resultMap = JsonConversionUtil .fromJson(new JSONObject("{a:{b:[{c:\"hello\"},{c:\"hello\"}]}}")); assertEquals(2, resultMap.size()); assertEquals("hello", resultMap.get(".a.b(0).c")); assertEquals("hello", resultMap.get(".a.b(1).c")); }
@Test public void testJSONToParameterMapParsing() throws Exception { Map<String, String> resultMap = JsonConversionUtil .fromJson(new JSONObject("{a:{b:[{c:\"hello\"},{c:\"hello\"}]}}")); assertEquals(2, resultMap.size()); assertEquals("hello", resultMap.get(".a.b(0).c")); assertEquals("hello", resultMap.get(".a.b(1).c")); }
@Test public void testJSONToParameterMapParsing() throws Exception { Map<String, String> resultMap = JsonConversionUtil .fromJson(new JSONObject("{a:{b:[{c:\"hello\"},{c:\"hello\"}]}}")); assertEquals(2, resultMap.size()); assertEquals("hello", resultMap.get(".a.b(0).c")); assertEquals("hello", resultMap.get(".a.b(1).c")); }
@Test public void testJSONToParameterMapParsing() throws Exception { Map<String, String> resultMap = JsonConversionUtil .fromJson(new JSONObject("{a:{b:[{c:\"hello\"},{c:\"hello\"}]}}")); assertEquals(2, resultMap.size()); assertEquals("hello", resultMap.get(".a.b(0).c")); assertEquals("hello", resultMap.get(".a.b(1).c")); }
@Test public void testJSONToParameterMapParsing() throws Exception { Map<String, String> resultMap = JsonConversionUtil .fromJson(new JSONObject("{a:{b:[{c:\"hello\"},{c:\"hello\"}]}}")); assertEquals(2, resultMap.size()); assertEquals("hello", resultMap.get(".a.b(0).c")); assertEquals("hello", resultMap.get(".a.b(1).c")); }