File tree 3 files changed +18
-23
lines changed
main/java/ru/mystamps/web/controller
robotframework/series/import
wiremock/__files/series/import/request-logic
3 files changed +18
-23
lines changed Original file line number Diff line number Diff line change @@ -51,26 +51,4 @@ public void seriesInfoWithExistingSeller(HttpServletResponse response) throws IO
51
51
);
52
52
}
53
53
54
- @ GetMapping ("/test/valid/series-info/new-seller" )
55
- public void seriesInfoWithNewSeller (HttpServletResponse response ) throws IOException {
56
- printHtml (
57
- response ,
58
- "<!DOCTYPE html>"
59
- + "<html>"
60
- + "<head>"
61
- + "<title>Series info (new seller)</title>"
62
- + "</head>"
63
- + "<body>"
64
- // CheckStyle: ignore LineLength for next 2 lines
65
- + "Image: <a id=\" series-image-link-1\" href=\" /image/1\" >series image</a><br />"
66
- + "Seller: <a id=\" test-seller\" href=\" http://example.com/lando-livianus\" >Lando Livianus</a><br />"
67
- + "Price: <span id=\" test-price\" >320.5</span> RUB<br />"
68
- // this is needed to simplify an integration test
69
- // (required fields "category" and "quantity" will be filled automatically)
70
- + "Info: <span class=\" dl-horizontal\" >Спорт, 7 марок</span>"
71
- + "</body>"
72
- + "</html>"
73
- );
74
- }
75
-
76
54
}
Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ Import series and series sale with existing seller from an external site
112
112
113
113
Import series and series sale with a new seller from an external site
114
114
[Documentation] Verify import series and sale (with a new seller)
115
- Input Text id=url http://localhost:8080/test/valid/series-info /new-seller
115
+ Input Text id=url ${ MOCK_SERVER } /series/import/request-logic /new-seller.html
116
116
Submit Form id=import-series-form
117
117
${requestLocation } = Get Location
118
118
Should Match Regexp ${requestLocation } /series/import/request/\\d+
Original file line number Diff line number Diff line change
1
+ <!DOCTYPE html>
2
+ < html >
3
+ < head >
4
+ < meta charset ="utf-8 " />
5
+ < title > Series info (new seller)</ title >
6
+ </ head >
7
+ < body >
8
+ Image: < a id ="series-image-link-1 " href ="http://127.0.0.1:8080/image/1 "> series image</ a > < br />
9
+ Seller: < a id ="test-seller " href ="http://example.com/lando-livianus "> Lando Livianus</ a > < br />
10
+ Price: < span id ="test-price "> 320.5</ span > RUB< br />
11
+ <!--
12
+ This is needed to simplify an integration test:
13
+ required fields "category" and "quantity" will be filled automatically
14
+ -->
15
+ Info: < span class ="dl-horizontal "> Спорт, 7 марок</ span >
16
+ </ body >
17
+ </ html >
You can’t perform that action at this time.
0 commit comments