Implemented a narrow integration-test: DemoApplicationIT
authorKai Moritz <kai@juplo.de>
Fri, 10 Jan 2020 19:07:51 +0000 (20:07 +0100)
committerKai Moritz <kai@juplo.de>
Fri, 28 Aug 2020 09:09:11 +0000 (11:09 +0200)
commit07ca86e8fe8bd302acc1a837f9ee2a62991ab6e7
tree8032b66bb5b3086bf33748ab7ea3aa0f85b97920
parentddda08de0026c84ed095dc76955f874fa7ef2dc6
Implemented a narrow integration-test: DemoApplicationIT

* Using testcontainers.org to start a Nginx-server in a container
* Using mock-server.org to intercept the HTTP-requests, if needed
* Implemented IntegrationTestBase to start Nginx and MockServer
* src/test/resources/index.html is needed, because the NginxContainer
  checks for it
* Using Jsoup to pick the remotly fetched text out of the rendered HTML
pom.xml
src/test/java/de/juplo/demo/DemoApplicationIT.java [new file with mode: 0644]
src/test/java/de/juplo/demo/IntegrationTestBase.java [new file with mode: 0644]
src/test/resources/index.html [new file with mode: 0644]
src/test/resources/test.txt [new file with mode: 0644]