Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- List<SpaceInventoryDTO> availableInventories = ListParserHelper.getList(response, SpaceInventoryDTO.class);
- public class ListParserHelper {
- public static <T> List getList(Response response, Class<T> cls) {
- return response.jsonPath().getList(".", cls);
- }
- List<SpaceInventoryDTO> availableInventories = response.jsonPath().getList(".", SpaceInventoryDTO.class);
Add Comment
Please, Sign In to add comment