File tree 4 files changed +11
-7
lines changed
main/java/ru/mystamps/web/controller 4 files changed +11
-7
lines changed Original file line number Diff line number Diff line change 30
30
@ Controller
31
31
public class TestController {
32
32
33
- @ GetMapping ("/test/invalid/response-400" )
34
- public void badRequest (HttpServletResponse response ) throws IOException {
35
- response .sendError (HttpServletResponse .SC_BAD_REQUEST );
36
- }
37
-
38
33
@ GetMapping ("/test/invalid/response-404" )
39
34
public void notFound (HttpServletResponse response ) throws IOException {
40
35
response .sendError (HttpServletResponse .SC_NOT_FOUND );
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ Add image with invalid URL
30
30
Element Text Should Be id=image-url.errors Value must be a valid URL
31
31
32
32
Add image with URL with invalid response
33
- Input Text id=image-url ${SITE_URL } /test/invalid /response-400
33
+ Input Text id=image-url ${MOCK_SERVER } /series /response-400
34
34
Submit Form id=add-image-form
35
35
Element Text Should Be id=image-url.errors Could not download file
36
36
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ Create series with invalid image URL
47
47
Element Text Should Be id=image-url.errors Value must be a valid URL
48
48
49
49
Create series with image URL with invalid response
50
- Input Text id=image-url ${SITE_URL } /test/invalid /response-400
50
+ Input Text id=image-url ${MOCK_SERVER } /series /response-400
51
51
Submit Form id=add-series-form
52
52
Element Text Should Be id=image-url.errors Could not download file
53
53
Original file line number Diff line number Diff line change
1
+ {
2
+ "request" : {
3
+ "method" : " GET" ,
4
+ "url" : " /series/response-400"
5
+ },
6
+ "response" : {
7
+ "status" : 400
8
+ }
9
+ }
You can’t perform that action at this time.
0 commit comments