@Test(expected = SeedException.class) public void resources_cannot_have_different_href() { Resource newResource = new Resource(REL, "http: resource.merge(newResource); }
public void merge(Resource resource) { if (resource == null) { return; } checkRel(resource); checkHrefs(resource); if (resource.templated()) { this.pathParams.putAll(resource.pathParams); this.queryParams.putAll(resource.queryParams); } if (resource.hints() != null) { this.hints.merge(resource.hints()); } }
Resource { public void merge(Resource resource) { if (resource == null) { return; } checkRel(resource); checkHrefs(resource); if (resource.templated()) { this.pathParams.putAll(resource.pathParams); this.queryParams.putAll(resource.queryParams); } if (resource.hints() != null) { this.hints.merge(resource.hints()); } } }
Resource { public void merge(Resource resource) { if (resource == null) { return; } checkRel(resource); checkHrefs(resource); if (resource.templated()) { this.pathParams.putAll(resource.pathParams); this.queryParams.putAll(resource.queryParams); } if (resource.hints() != null) { this.hints.merge(resource.hints()); } } Resource(String rel, String href, Hints hints);  Resource(String rel, String hrefTemplate, Map<String, String> pathParams, Map<String, String> queryParams,
            Hints hints); }
Resource { public void merge(Resource resource) { if (resource == null) { return; } checkRel(resource); checkHrefs(resource); if (resource.templated()) { this.pathParams.putAll(resource.pathParams); this.queryParams.putAll(resource.queryParams); } if (resource.hints() != null) { this.hints.merge(resource.hints()); } } Resource(String rel, String href, Hints hints);  Resource(String rel, String hrefTemplate, Map<String, String> pathParams, Map<String, String> queryParams,
            Hints hints); String rel(); String href(); String hrefTemplate(); Map<String, String> hrefVars(); Hints hints(); boolean templated(); void merge(Resource resource); Map<String, Object> toRepresentation(); @Override String toString(); }
Resource { public void merge(Resource resource) { if (resource == null) { return; } checkRel(resource); checkHrefs(resource); if (resource.templated()) { this.pathParams.putAll(resource.pathParams); this.queryParams.putAll(resource.queryParams); } if (resource.hints() != null) { this.hints.merge(resource.hints()); } } Resource(String rel, String href, Hints hints);  Resource(String rel, String hrefTemplate, Map<String, String> pathParams, Map<String, String> queryParams,
            Hints hints); String rel(); String href(); String hrefTemplate(); Map<String, String> hrefVars(); Hints hints(); boolean templated(); void merge(Resource resource); Map<String, Object> toRepresentation(); @Override String toString();  }