Tagged: CDI

0
3 Best Practices to Test a Code That Calls Static Methods

3 Best Practices to Test a Code That Calls Static Methods

If you’ve ever developed unit tests in a serious project, you should know how frustrating it is to test a code that calls static methods. Here I’ll try to summarize 3 best practices that I normally use to test such a code. When does a static method requires a special care in unit tests? Not all static...

0
Apache DeltaSpike Logo

Implementing Repositories in Java SE using DeltaSpike

Repositories are one of my favorite patterns to make an abstraction of the data layer of an application. You may have heard about it if you have ever read an article about Domain Driven Design. Hence in this post I consider you have the basic familiarity with it and will focus mostly on how to implement this...