Skip to content

Commit

Permalink
fix : junit, as fund name is changed
Browse files Browse the repository at this point in the history
  • Loading branch information
rajadilipkolli authored Dec 13, 2023
1 parent e2d13df commit 006976d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ jobs:
strategy:
matrix:
distribution: [ 'temurin' ]
java: [ '17' ]
java: [ '21' ]
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis

- name: Setup Java 17
- name: Setup Java 21
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ void shouldLoadDataWhenSchemeFound() throws Exception {
.andExpect(header().string("Content-Type", is("application/json")))
.andExpect(jsonPath("$.schemeCode", is(120503L), Long.class))
.andExpect(jsonPath("$.payout", is("INF846K01EW2")))
.andExpect(jsonPath("$.schemeName", is("Axis Long Term Equity Fund - Direct Plan - Growth Option")))
.andExpect(jsonPath("$.schemeName", is("Axis ELSS Tax Saver Fund - Direct Plan - Growth Option")))
.andExpect(jsonPath("$.nav", notNullValue(String.class)))
.andExpect(jsonPath("$.date", notNullValue(String.class)));
}
Expand All @@ -49,7 +49,7 @@ void shouldLoadDataWhenSchemeFoundAndLoadHistoricalData() throws Exception {
.andExpect(header().string("Content-Type", is("application/json")))
.andExpect(jsonPath("$.schemeCode", is(120503L), Long.class))
.andExpect(jsonPath("$.payout", is("INF846K01EW2")))
.andExpect(jsonPath("$.schemeName", is("Axis Long Term Equity Fund - Direct Plan - Growth Option")))
.andExpect(jsonPath("$.schemeName", is("Axis ELSS Tax Saver Fund - Direct Plan - Growth Option")))
.andExpect(jsonPath("$.nav", is("73.6085")))
.andExpect(jsonPath("$.date", is("2022-12-20")));
}
Expand Down

0 comments on commit 006976d

Please sign in to comment.