@Test public void shouldCreateJsonOutputFieldWithObjectArray() throws JSONException { String name = "NAME"; String[] values = new String[]{"VALUE1", "VALUE2", "VALUE3"}; JsonValue jsonObject = abstractRestAuthCallbackHandler.createOutputField(name, values); assertEquals(jsonObject.get("name").asString(), "NAME"); 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 createOutputField(String name, Object value) { return createJsonField(name, value); }
AbstractRestAuthCallbackHandler implements RestAuthCallbackHandler<T> { final JsonValue createOutputField(String name, Object value) { return createJsonField(name, value); } }
AbstractRestAuthCallbackHandler implements RestAuthCallbackHandler<T> { final JsonValue createOutputField(String name, Object value) { return createJsonField(name, value); }  }
AbstractRestAuthCallbackHandler implements RestAuthCallbackHandler<T> { final JsonValue createOutputField(String name, Object value) { return createJsonField(name, value); }  boolean updateCallbackFromRequest(HttpHeaders headers, HttpServletRequest request,
            HttpServletResponse response, T callback); }
AbstractRestAuthCallbackHandler implements RestAuthCallbackHandler<T> { final JsonValue createOutputField(String name, Object value) { return createJsonField(name, value); }  boolean updateCallbackFromRequest(HttpHeaders headers, HttpServletRequest request,
            HttpServletResponse response, T callback);  }