demos/testing
4 years agoSwitched parameterized test in HtmlControllerTest to @EnumSource
Kai Moritz [Tue, 14 Jan 2020 16:48:04 +0000 (17:48 +0100)]
Switched parameterized test in HtmlControllerTest to @EnumSource

4 years agoChecked, that the error-messeage is rendered for other common errors
Kai Moritz [Tue, 14 Jan 2020 16:26:16 +0000 (17:26 +0100)]
Checked, that the error-messeage is rendered for other common errors

* Added a unit-test, that defines the expected behavior for other errors
* Since the HtmlController simply used getMessage(), no modification was
  necessary to comply with the added test

4 years agoThe error-message is reanderd instead of the text, in case of a 404
Kai Moritz [Tue, 14 Jan 2020 16:08:19 +0000 (17:08 +0100)]
The error-message is reanderd instead of the text, in case of a 404

* Added a unit-test, that defines the expected behavior
* Fixed the behavior in HtmlController accordingly

4 years agoAdded an integration-test for HtmlController
Kai Moritz [Tue, 14 Jan 2020 09:16:06 +0000 (10:16 +0100)]
Added an integration-test for HtmlController

* The test verifies the mapping from URL's to controllers

4 years agoSeparated layout from content with Thymeleaf
Kai Moritz [Thu, 16 Jan 2020 09:16:23 +0000 (10:16 +0100)]
Separated layout from content with Thymeleaf

4 years agoAdded a html-controller, that renders the fetched data
Kai Moritz [Mon, 13 Jan 2020 18:25:37 +0000 (19:25 +0100)]
Added a html-controller, that renders the fetched data

4 years agoFurther simplification: using the real WebClient with an ExchangeFunction
Kai Moritz [Sun, 12 Jan 2020 14:04:35 +0000 (15:04 +0100)]
Further simplification: using the real WebClient with an ExchangeFunction

4 years agoImplemented a WebClientStub to simplify the unit-test
Kai Moritz [Sat, 11 Jan 2020 21:00:41 +0000 (22:00 +0100)]
Implemented a WebClientStub to simplify the unit-test

4 years agoUnit-test with mocking, that does not determines the implementation
Kai Moritz [Sat, 11 Jan 2020 18:51:09 +0000 (19:51 +0100)]
Unit-test with mocking, that does not determines the implementation

4 years agoImplemented a seemingly pure and clean unit-test
Kai Moritz [Sat, 11 Jan 2020 15:30:26 +0000 (16:30 +0100)]
Implemented a seemingly pure and clean unit-test

4 years agoImplemented a service, that fetches data from a remote-host
Kai Moritz [Sat, 11 Jan 2020 15:28:59 +0000 (16:28 +0100)]
Implemented a service, that fetches data from a remote-host

4 years agoSpring Initializr: 2.2.2 / Spring Webflux / Thymeleaf
Kai Moritz [Fri, 10 Jan 2020 18:16:35 +0000 (19:16 +0100)]
Spring Initializr: 2.2.2 / Spring Webflux / Thymeleaf