It is crucial that each piece of code you deploy have a unique version, it help you you track what your client is running, mark deployments with breaking changes and make your life so much easier - especially when trying to understand what changes are running at your client site in the middle of the … Continue reading Versioning Multiple Micro-Services in a Monorepo using Maven
Tag: Java
Easily create builders for your tests using Intellij IDEA
The builder pattern is one of the more useful patterns out there when creation unit tests. Instead of having a huge initialization such as: @Test void validateUser_userNameIsEmpty_returnFalse(){ var user = new User(); user.setId("id-1"); user.setName(null); user.setPhoneNumber("555-1234"); // additional user initialization boolean result = userService.validate(user); assertFalse(result); } You can instead create a simple user builder object for … Continue reading Easily create builders for your tests using Intellij IDEA