mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2026-02-01 04:11:11 +00:00
Add user friendly error message
This commit is contained in:
parent
c7bc8b1ae6
commit
405cdc635b
2 changed files with 4 additions and 4 deletions
|
|
@ -117,7 +117,7 @@ class OwnerControllerTests {
|
|||
.param("lastName", "Bloggs")
|
||||
.param("address", "123 Caramel Street")
|
||||
.param("city", "London")
|
||||
.param("telephone", "01316761638"))
|
||||
.param("telephone", "1316761638"))
|
||||
.andExpect(status().is3xxRedirection());
|
||||
}
|
||||
|
||||
|
|
@ -188,7 +188,7 @@ class OwnerControllerTests {
|
|||
.param("lastName", "Bloggs")
|
||||
.param("address", "123 Caramel Street")
|
||||
.param("city", "London")
|
||||
.param("telephone", "01616291589"))
|
||||
.param("telephone", "1616291589"))
|
||||
.andExpect(status().is3xxRedirection())
|
||||
.andExpect(view().name("redirect:/owners/{ownerId}"));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue