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
Tag: Tools
Using nDepend to understand, and improve legacy code
One of the issues when dealing with legacy code is missing information. Unlike newly developed code which has up to date documentation or at least some developers who know design decisions and implementation details. Legacy code is a completely different story - the original developers usually are not around to answer any questions, documentation is … Continue reading Using nDepend to understand, and improve legacy code
Best multi threaded programming tool ever!
If you’ve been developing software for a few years you might have noticed an increase in the need of parallel programming and it’s no wonder in these day and time when most computers have at least 2 cores that can run two actions at the same time. Along with the need comes the solution - … Continue reading Best multi threaded programming tool ever!
Two Free Tools for Deadlock Detection
disclaimer - I work at Typemock and I am part of the Racer development team. I saw a post today on Dev102.Com – Free Tool for Managed and Unmanaged Deadlock Detection. The post is about a Visual Studio extension that help developer of managed and unmanaged code debug threaded code - Debug Inspector. This extension … Continue reading Two Free Tools for Deadlock Detection