@Test public void verifyToMap() { Map<String, Object> result = tested.toMap(HateoasVerbosity.MAXIMUM); assertEquals("test.dummy", result.get("id")); assertEquals("self", result.get("rel")); assertEquals("POST", result.get("method")); assertEquals("http: assertEquals("test label", result.get("label")); assertEquals("test description", result.get("description")); TestUtils.assertArray((String[]) result.get("consumes"), "**"); assertEquals(new DummyDto(), result.get("template")); }
@Override public Map<String, Object> toMap(HateoasVerbosity verbosity) { HashMap<String, Object> result = Maps.newLinkedHashMap(); for (HateoasOption element : verbosity.getOptions()) { element.addTo(result, this); } return result; }
DefaultHateoasLink implements HateoasLink { @Override public Map<String, Object> toMap(HateoasVerbosity verbosity) { HashMap<String, Object> result = Maps.newLinkedHashMap(); for (HateoasOption element : verbosity.getOptions()) { element.addTo(result, this); } return result; } }
DefaultHateoasLink implements HateoasLink { @Override public Map<String, Object> toMap(HateoasVerbosity verbosity) { HashMap<String, Object> result = Maps.newLinkedHashMap(); for (HateoasOption element : verbosity.getOptions()) { element.addTo(result, this); } return result; } DefaultHateoasLink(String id, String rel, String href, String[] consumes,
			String[] produces, String method, String label, String description,
			Class<?> templateClass); }
DefaultHateoasLink implements HateoasLink { @Override public Map<String, Object> toMap(HateoasVerbosity verbosity) { HashMap<String, Object> result = Maps.newLinkedHashMap(); for (HateoasOption element : verbosity.getOptions()) { element.addTo(result, this); } return result; } DefaultHateoasLink(String id, String rel, String href, String[] consumes,
			String[] produces, String method, String label, String description,
			Class<?> templateClass); @Override String getLabel(); @Override String getDescription(); @Override Class<?> getTemplateClass(); @Override String getRel(); @Override String getMethod(); @Override String getId(); @Override String getHref(); @Override String[] getProduces(); @Override String[] getConsumes(); @Override Map<String, Object> toMap(HateoasVerbosity verbosity); @Override boolean equals(Object o); @Override int hashCode(); }
DefaultHateoasLink implements HateoasLink { @Override public Map<String, Object> toMap(HateoasVerbosity verbosity) { HashMap<String, Object> result = Maps.newLinkedHashMap(); for (HateoasOption element : verbosity.getOptions()) { element.addTo(result, this); } return result; } DefaultHateoasLink(String id, String rel, String href, String[] consumes,
			String[] produces, String method, String label, String description,
			Class<?> templateClass); @Override String getLabel(); @Override String getDescription(); @Override Class<?> getTemplateClass(); @Override String getRel(); @Override String getMethod(); @Override String getId(); @Override String getHref(); @Override String[] getProduces(); @Override String[] getConsumes(); @Override Map<String, Object> toMap(HateoasVerbosity verbosity); @Override boolean equals(Object o); @Override int hashCode();  }