June 2014
Beginner to intermediate
304 pages
7h 25m
English
Similarly, we can test the REST-based controllers as well. Just perform the following steps:
pom.xml and you will find pom.xml under the root directory of the project itself.pom.xml file; select the Dependencies tab and click on the Add button of the Dependencies section.com.jayway.jsonpath, Artifact Id as json-path-assert, and Version as 0.8.1. Select Scope as test, click on the OK button, and save pom.xml.CartRestControllerTest under the com.packt.webstore.controller package in the source folder, src/test/java. Now add the following code to it:package com.packt.webstore.controller; ...