Profile cover photo
Profile photo
Rafał Borowiec
132 followers
132 followers
About
Posts

Post has attachment
JUnit 5 meets AssertJ
JUnit 5 brings a lot of improvements in the assertions library, mainly thanks to Java 8 and Lambda Expression support and thanks to the presence of the new assertions like assertAll , assertTimeout or assertThrows . Although I really like JUnit 5 I believe ...
Add a comment...

Post has attachment
Asynchrouns and Transactional Event Listeners in Spring
The built-in event publication functionality exists from the early Spring versions and it is still useful for handling basic communication between Spring components in the same application context. In general, the application can generate application event...
Add a comment...

Post has attachment
JUnit 5 - Basics
JUnit 5 is the next generation unit testing framework for Java equipped with many interesting features including nested tests, parameterized tests, new extension API or Java 8 support to mentioned a few. This article shows basic concepts of JUnit 5 includin...
Add a comment...

Post has attachment
Spring Boot - spring.config.name - Case Study
Externalizing Spring Boot application properties is useful when the same application code must be used with different configuration. If the configuration is to be kept away from the source code (which is considered a best practice anyways) spring.config.loc...
Add a comment...

Post has attachment
Get started quickly with Spring 5 using Spring MVC Archetype
Spring 5 GA got released so I released the new version of Spring MVC Archetype. Create a project To create a really basic application using the archetype simply run the following command in your shell: mvn archetype:generate \
-DarchetypeGroupId=pl....
Add a comment...

Post has attachment
Lombok - you should definitely give it a try
Lombok is not a new thing in a Java ecosystem, but I must admit I always underestimated its value until I tried it or I was “convienced” to try it. I did not see much value in adding a library that generates code that can be easily generated by any modern I...
Add a comment...

Post has attachment
Remote debugging Wildfly application in IntelliJ
Remote debugging a Java application means connecting to the remotely running application using your local development environment. Java supports remote debugging out of the box: the target application must be executed with -agentlib:jdwp[=options] option w...
Add a comment...

Post has attachment
Cleaner parameterized tests with JUnit 5
The general idea of parameterized unit tests is to run the same test method for different data. Creating parameterized tests in JUnit 4 is far from being perfect. There are many issues with the existing architecture: parameters are defined as class fields a...
Add a comment...

Post has attachment
Testing exceptions with JUnit 5
JUnit 5 brought pretty awesome improvements and it differs a lot from its predecessor. JUnit 5 requires Java 8 at runtime hence Lambda expressions can be used in tests, especially in assertions. One of those assertions is perfectly suited for testing excep...
Add a comment...

Post has attachment
Thymeleaf 3 Standard Layout System Improvements
Thymeleaf 3 Standard Layout System Improvements Thymeleaf 3 improved Standard Layout System so that creating layouts is more flexible as ever before. Use th:insert instead of th:include th:include is not recommended anymore and it will be deprecated in futu...
Add a comment...
Wait while more posts are being loaded