Skip to content

Commit

Permalink
fix spring webmvc tests
Browse files Browse the repository at this point in the history
  • Loading branch information
spaced committed Jun 14, 2024
1 parent 3fb8a99 commit 681ad2b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions ebics-rest-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
<name>EBICS REST api</name>
<description>EBICS client exposed over REST API</description>
<properties>
<spring.restdocs.version>2.0.5.RELEASE</spring.restdocs.version>
<asciidoctor-maven-plugin-version>2.2.2</asciidoctor-maven-plugin-version>
<spring.restdocs.version>3.0.1</spring.restdocs.version>
<asciidoctor-maven-plugin-version>2.2.6</asciidoctor-maven-plugin-version>
</properties>
<dependencyManagement>
<dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class EbicsBankResourceTest(@Autowired private val context: WebApplicationContex

@Test
fun listBanks() {
mockMvc.perform(get("/banks/"))
mockMvc.perform(get("/banks"))
.andExpect(status().isOk)
.andExpect(content().contentType(MediaType.APPLICATION_JSON))
.andDo{ MockMvcResultHandlers.print() }
Expand All @@ -59,7 +59,7 @@ class EbicsBankResourceTest(@Autowired private val context: WebApplicationContex

@Test
fun getBankById() {
mockMvc.perform(get("/banks/1/"))
mockMvc.perform(get("/banks/1"))
.andExpect(status().isOk)
.andExpect(content().contentType(MediaType.APPLICATION_JSON))
.andDo{ MockMvcResultHandlers.print() }
Expand All @@ -72,4 +72,4 @@ class EbicsBankResourceTest(@Autowired private val context: WebApplicationContex
.andDo(document("banks/{id}"))
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class EbicsBankConnectionsResourceTest(@Autowired private val context: WebApplic

@Test
fun bankConnectionsGet() {
mockMvc.perform(get("/bankconnections/").param("permission", "READ"))
mockMvc.perform(get("/bankconnections").param("permission", "READ"))
.andExpect(status().isOk)
.andExpect(content().contentType(MediaType.APPLICATION_JSON))
.andDo{ MockMvcResultHandlers.print() }
Expand All @@ -60,7 +60,7 @@ class EbicsBankConnectionsResourceTest(@Autowired private val context: WebApplic

@Test
fun bankConnectionGet() {
mockMvc.perform(get("/bankconnections/1/").param("permission", "READ"))
mockMvc.perform(get("/bankconnections/1").param("permission", "READ"))
.andExpect(status().isOk)
.andExpect(content().contentType(MediaType.APPLICATION_JSON))
.andDo{ MockMvcResultHandlers.print() }
Expand All @@ -74,4 +74,4 @@ class EbicsBankConnectionsResourceTest(@Autowired private val context: WebApplic
.andDo(document("bankconnections/{id}"))
}

}
}

0 comments on commit 681ad2b

Please sign in to comment.