@Test public void shouldCreateJsonInputFieldWithObjectArray() throws JSONException { String[] values = new String[]{"VALUE1", "VALUE2", "VALUE3"}; JsonValue jsonObject = abstractRestAuthCallbackHandler.createInputField(0, values); assertEquals(jsonObject.get("name").asString(), "IDToken0"); assertEquals(jsonObject.get("value").get(0).asString(), "VALUE1"); assertEquals(jsonObject.get("value").get(1).asString(), "VALUE2"); assertEquals(jsonObject.get("value").get(2).asString(), "VALUE3"); }
final JsonValue createInputField(int index, Object value) { return createJsonField("IDToken" + index, value); }
AbstractRestAuthCallbackHandler implements RestAuthCallbackHandler<T> { final JsonValue createInputField(int index, Object value) { return createJsonField("IDToken" + index, value); } }
AbstractRestAuthCallbackHandler implements RestAuthCallbackHandler<T> { final JsonValue createInputField(int index, Object value) { return createJsonField("IDToken" + index, value); }  }
AbstractRestAuthCallbackHandler implements RestAuthCallbackHandler<T> { final JsonValue createInputField(int index, Object value) { return createJsonField("IDToken" + index, value); }  boolean updateCallbackFromRequest(HttpHeaders headers, HttpServletRequest request,
            HttpServletResponse response, T callback); }
AbstractRestAuthCallbackHandler implements RestAuthCallbackHandler<T> { final JsonValue createInputField(int index, Object value) { return createJsonField("IDToken" + index, value); }  boolean updateCallbackFromRequest(HttpHeaders headers, HttpServletRequest request,
            HttpServletResponse response, T callback);  }