MME-19 Add test for images?count=true endpoint.
This commit is contained in:
parent
d1df876bb3
commit
fd3728eb4d
@ -440,4 +440,15 @@ public class ImageControllerTests {
|
|||||||
.andExpect(status().isForbidden());
|
.andExpect(status().isForbidden());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void getCountOfOwnedImages() throws Exception {
|
||||||
|
final User owner = this.seedUser();
|
||||||
|
this.mockMvc.perform(
|
||||||
|
get("/images?count=true")
|
||||||
|
.header("Authorization", "Bearer " + this.getAccessToken(owner))
|
||||||
|
)
|
||||||
|
.andExpect(status().isOk())
|
||||||
|
.andExpect(jsonPath("$.count").isNotEmpty());
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user