How to pass default parser in REST Assured?
问题 I am trying to Automate API using REST Assured. Below is the Error I got in during executing the API Test Case :- testNotifications(com.api.truValue.test.notifications.NotificationsTest) Time elapsed: 1.832 sec <<< FAILURE! java.lang.IllegalStateException: Cannot invoke the path method because no content-type was present in the response and no default parser has been set. You can specify a default parser using e.g.: RestAssured.defaultParser = Parser.JSON; at com.api.truValue.test