Asserting array of arrays with JSONPath and spring mvc

How about adding several andExpect methods? Something similar to:

mockMvc.perform(get("https://stackoverflow.com/")).andDo(print()).andExpect(status().isOk())
    .andExpect(jsonPath("$.links[0].rel[0]", is("self")))
    .andExpect(jsonPath("$.links[0].href[0]", is("https://stackoverflow.com/"));

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)