-
Core Java👁 Image
Mockito vs. Mocking the JVM: Bytecode Manipulation for Ultimate Test Control
Mockito is the go-to mocking framework for Java developers, but it has limits—it can’t mock final classes, static methods, or…
Read More » -
Core Java👁 Image
Mockito vs PowerMock: Which One to Choose for Mocking Static Methods?
When it comes to unit testing in Java, mocking is a crucial aspect of simulating behavior and controlling dependencies. However,…
Read More » -
Core Java👁 Image
Using PowerMock to Mock Constructors
In my opinion, one of the main benefits of dependency injection is that you can inject mock and/or stub objects…
Read More » -
Enterprise Java👁 Image
My Testing and Code Analysis Toolbox
Last week we kicked of a “Testing Skill Group” at LINEAS, a group for exchanging knowledge about testing. One question…
Read More » -
Core Java👁 Image
Mock Static Methods with PowerMock
In a recent blog, I tried to highlight the benefits of using dependency injection and expressing the idea that one…
Read More » -
Core Java👁 Image
Testing an Object’s Internal State with PowerMock
Most unit testing focuses on testing an object’s behaviour in order to prove that it works. This is achieved by…
Read More »
