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

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

Introduction

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

Prototype

public List<String> getCategories() 

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