Skip to content

Commit ccc284d

Browse files
committed
/test/valid/series-info/catalog-numbers-in-description: port to WireMock stub.
Also add <meta charset> tag to fix displyaing of the page in a browser. No functional changes.
1 parent ee25d80 commit ccc284d

File tree

3 files changed

+13
-21
lines changed

3 files changed

+13
-21
lines changed

src/main/java/ru/mystamps/web/controller/TestController.java

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -73,24 +73,4 @@ public void seriesInfoWithNewSeller(HttpServletResponse response) throws IOExcep
7373
);
7474
}
7575

76-
@GetMapping("/test/valid/series-info/catalog-numbers-in-description")
77-
public void seriesInfoWithCatalogNumbersInDescription(HttpServletResponse response)
78-
throws IOException {
79-
80-
printHtml(
81-
response,
82-
"<!DOCTYPE html>"
83-
+ "<html>"
84-
+ "<head>"
85-
+ "<title>Series info (catalog numbers in description)</title>"
86-
+ "</head>"
87-
+ "<body>"
88-
+ "Image: <a id=\"series-image-link-1\" href=\"/image/1\">series image</a>"
89-
+ "<br />"
90-
+ "Info: <span class=\"dl-horizontal\">Спорт, 17 марок, Mi# 2242-2246</span>"
91-
+ "</body>"
92-
+ "</html>"
93-
);
94-
}
95-
9676
}

src/test/robotframework/series/import/request-logic.robot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ Import series from an external site (in Russian, use description locator)
7878

7979
Import series from external site with catalog numbers (use description locator)
8080
[Documentation] Verify import of catalog numbers by extracting them from a description
81-
Input Text id=url http://localhost:8080/test/valid/series-info/catalog-numbers-in-description
81+
Input Text id=url ${MOCK_SERVER}/series/import/request-logic/catalog-numbers-in-description.html
8282
Submit Form id=import-series-form
8383
Textfield Value Should Be id=michel-numbers 2242-2246
8484
Submit Form id=create-series-form
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="utf-8" />
5+
<title>Series info (catalog numbers in description)</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>
9+
<br />
10+
Info: <span class="dl-horizontal">Спорт, 17 марок, Mi# 2242-2246</span>
11+
</body>
12+
</html>

0 commit comments

Comments
 (0)