@Test public void testAuthReq() { final Hints hints = hintsBuilder().withAuthRequired(asList( authReq("Basic", asList("private")))) .build(); final Map<String, ?> map = toJsonHomeRepresentation(hints); assertEquals(map.keySet().size(), 3); List<Map<String, Object>> expectedAuthReq = new ArrayList<Map<String, Object>>(); Map<String, Object> auth = new HashMap<String, Object>(); auth.put("scheme", "Basic"); auth.put("realms", asList("private")); expectedAuthReq.add(auth); assertEquals(map.get("auth-req"), expectedAuthReq); }
public static Map<String, ?> toJsonHomeRepresentation(final Hints hints) { return toRepresentation(hints, APPLICATION_JSONHOME); }
HintsConverter { public static Map<String, ?> toJsonHomeRepresentation(final Hints hints) { return toRepresentation(hints, APPLICATION_JSONHOME); } }
HintsConverter { public static Map<String, ?> toJsonHomeRepresentation(final Hints hints) { return toRepresentation(hints, APPLICATION_JSONHOME); } private  HintsConverter(); }
HintsConverter { public static Map<String, ?> toJsonHomeRepresentation(final Hints hints) { return toRepresentation(hints, APPLICATION_JSONHOME); } private  HintsConverter(); static Map<String, ?> toJsonHomeRepresentation(final Hints hints); static Map<String, ?> toRepresentation(final Hints hints, final JsonHomeMediaType mediaType); }
HintsConverter { public static Map<String, ?> toJsonHomeRepresentation(final Hints hints) { return toRepresentation(hints, APPLICATION_JSONHOME); } private  HintsConverter(); static Map<String, ?> toJsonHomeRepresentation(final Hints hints); static Map<String, ?> toRepresentation(final Hints hints, final JsonHomeMediaType mediaType);  }