Abrufen von Wetterdaten der ELV WS980WiFi mit Hilfe eines Spring Boot Microservices.
WeiterlesenSchlagwort: Java
Test private methods
Sometimes a method you want to test is private and cannot be called directly from a junit test. Of course
WeiterlesenCapture arguments from a mocked service call
If you like to get the arguments of a mocked service call SERVICEMETHOD you can use this Now you can
WeiterlesenDefine Spring Beans inline JUnit test
Sometimes you like to define some Spring beans in a JUnit test and do not want to create extra files
WeiterlesenReset Mocks before every test
Some mocks may need a reset before the test is run. Especially if the same one is used in several
WeiterlesenParse double from string with dot or comma
Sometimes it is not clear which decimal seperator is used. You can have a dot or a comma without knowing
WeiterlesenCreate BigDecimal from double
If you create a BigDecimal from a double value you should not use the contructor of BigDecimal: Because of the
Weiterlesen