summary |
shortlog | log |
commit |
commitdiff |
tree
first ⋅ prev ⋅ next
Kai Moritz [Tue, 14 Jan 2020 19:11:06 +0000 (20:11 +0100)]
Verified, that RestController throws NotFound, if remote-data does not exist
* This tests may seem to check the value reached into the class by the test
itself, because RestController simply returns the fetched Mono at the
moment
* But it is valuable, because it verifies, that the behavior stays unchanged,
when the implementation of RestControler is changed
Kai Moritz [Tue, 14 Jan 2020 19:04:27 +0000 (20:04 +0100)]
Verified, that requests to the RestController without "path" are invalid
Kai Moritz [Tue, 14 Jan 2020 18:52:10 +0000 (19:52 +0100)]
Added more tests for valid URI's (aka: with parameter)
* Switchted @Test to @ParameterizedTest in HtmlControllerTest and
RestControllerTest
* Fixed the behavior of RestController accordingly
Kai Moritz [Tue, 14 Jan 2020 18:43:15 +0000 (19:43 +0100)]
Added an integration-tests for RestController
Kai Moritz [Mon, 13 Jan 2020 11:43:27 +0000 (12:43 +0100)]
Added a rest-controller, that serves the fetched data as text/plain
Kai Moritz [Tue, 14 Jan 2020 17:56:15 +0000 (18:56 +0100)]
The parameter "path" is added to the model
* Modified HtmlControllerTest to verify the new behavior
* Fixed the behavior of the HtmlController accordingly
* Added a form to the example-layout
Kai Moritz [Tue, 14 Jan 2020 17:28:22 +0000 (18:28 +0100)]
Added more tests for URI's without a parameter
* Transformed test into a @ParameterizedTest
* Fixed the behavior of the HtmlController accordingly
Kai Moritz [Tue, 14 Jan 2020 17:06:41 +0000 (18:06 +0100)]
Missing path-parameter renders a page without remote-data (no 400)
* Added a test to MappingIT, that defines the expected behavior
* Fixed the behavior in HtmlController accordingly
Kai Moritz [Tue, 14 Jan 2020 16:48:04 +0000 (17:48 +0100)]
Switched parameterized test in HtmlControllerTest to @EnumSource
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
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
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
Kai Moritz [Thu, 16 Jan 2020 09:16:23 +0000 (10:16 +0100)]
Separated layout from content with Thymeleaf
Kai Moritz [Mon, 13 Jan 2020 18:25:37 +0000 (19:25 +0100)]
Added a html-controller, that renders the fetched data
Kai Moritz [Sun, 12 Jan 2020 14:04:35 +0000 (15:04 +0100)]
Further simplification: using the real WebClient with an ExchangeFunction
Kai Moritz [Sat, 11 Jan 2020 21:00:41 +0000 (22:00 +0100)]
Implemented a WebClientStub to simplify the unit-test
Kai Moritz [Sat, 11 Jan 2020 18:51:09 +0000 (19:51 +0100)]
Unit-test with mocking, that does not determines the implementation
Kai Moritz [Sat, 11 Jan 2020 15:30:26 +0000 (16:30 +0100)]
Implemented a seemingly pure and clean unit-test
Kai Moritz [Sat, 11 Jan 2020 15:28:59 +0000 (16:28 +0100)]
Implemented a service, that fetches data from a remote-host
Kai Moritz [Fri, 10 Jan 2020 18:16:35 +0000 (19:16 +0100)]
Spring Initializr: 2.2.2 / Spring Webflux / Thymeleaf