Skip to content

Commit

Permalink
fix: assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
rajadilipkolli authored Jan 11, 2024
1 parent d4398f5 commit fe9cd7d
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,11 @@ class XIRRCalculatorControllerIntTest extends AbstractIntegrationTest {

@Test
void getXIRR() throws Exception {
// Body = {"119544":9.902533730446047}
this.mockMvc
.perform(get("/api/xirr/{pan}", "ABCDE1234F").accept(MediaType.APPLICATION_JSON))
.andExpect(status().isOk())
.andExpect(header().string(HttpHeaders.CONTENT_TYPE, is(MediaType.APPLICATION_JSON_VALUE)))
.andExpect(jsonPath("$.size()", is(0)));
.andExpect(jsonPath("$.size()", is(1)));
}
}

0 comments on commit fe9cd7d

Please sign in to comment.