Example usage for org.springframework.data.rest.webmvc.solr Product getId

List of usage examples for org.springframework.data.rest.webmvc.solr Product getId

Introduction

In this page you can find the example usage for org.springframework.data.rest.webmvc.solr Product getId.

Prototype

public String getId() 

Source Link

Usage

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;
}