Guest User

Untitled

a guest
Feb 18th, 2019
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. List<SpaceInventoryDTO> availableInventories = ListParserHelper.getList(response, SpaceInventoryDTO.class);
  2.  
  3.  
  4. public class ListParserHelper {
  5. public static <T> List getList(Response response, Class<T> cls) {
  6. return response.jsonPath().getList(".", cls);
  7. }
  8.  
  9. List<SpaceInventoryDTO> availableInventories = response.jsonPath().getList(".", SpaceInventoryDTO.class);
Add Comment
Please, Sign In to add comment