List of usage examples for org.springframework.data.rest.webmvc.solr Product getId
public String getId()
From source file:org.springframework.data.rest.webmvc.solr.SolrWebTests.java
private MockHttpServletResponse requestAndCompare(Product reference) throws Exception { MockHttpServletResponse response = client.request("/products/" + reference.getId()); assertJsonPathEquals("name", reference.getName(), response); assertJsonPathEquals("categories", MAPPER.writeValueAsString(reference.getCategories()), response); return response; }