File tree Expand file tree Collapse file tree 4 files changed +15
-8
lines changed
main/java/ru/mystamps/web/controller Expand file tree Collapse file tree 4 files changed +15
-8
lines changed Original file line number Diff line number Diff line change 3030@ Controller
3131public class TestController {
3232
33- @ GetMapping ("/test/invalid/empty-jpeg-file" )
34- public void emptyJpegFile (HttpServletResponse response ) {
35- response .setContentType ("image/jpeg" );
36- response .setContentLength (0 );
37- }
38-
3933 @ GetMapping (path = "/test/invalid/not-image-file" , produces = "application/json" )
4034 @ ResponseBody
4135 public String simpleJson () {
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ Add image with URL that causes a redirect
4545 Element Text Should Be id=image-url.errors URL must not redirect to another address
4646
4747Add image with URL to an empty file
48- Input Text id=image-url ${SITE_URL } /test/invalid /empty-jpeg-file
48+ Input Text id=image-url ${MOCK_SERVER } /series /empty-jpeg-file
4949 Submit Form id=add-image-form
5050 Element Text Should Be id=image-url.errors File must not be empty
5151
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ Create series with image URL that causes a redirect
6262 Element Text Should Be id=image-url.errors URL must not redirect to another address
6363
6464Create series with image URL to an empty file
65- Input Text id=image-url ${SITE_URL } /test/invalid /empty-jpeg-file
65+ Input Text id=image-url ${MOCK_SERVER } /series /empty-jpeg-file
6666 Submit Form id=add-series-form
6767 Element Text Should Be id=image-url.errors File must not be empty
6868
Original file line number Diff line number Diff line change 1+ {
2+ "request" : {
3+ "method" : " GET" ,
4+ "url" : " /series/empty-jpeg-file"
5+ },
6+ "response" : {
7+ "status" : 200 ,
8+ "headers" : {
9+ "Content-Type" : " image/jpeg" ,
10+ "Content-Length" : " 0"
11+ }
12+ }
13+ }
You can’t perform that action at this time.
0 commit comments