• In the deep trenches with JMockit Part 3

    This is a continuation from Part 2 on JMockit concepts. In this section, we’ll cover the final important topics as well as references you can continue with. Mockups Mockups can be used when you have complex behavior of a class under test and your expectations start to get too convoluted....


  • In the deep trenches with JMockit Part 2

    This is a continuation from Part 1 on JMockit concepts. In this section, we’ll cover Verifications, @Tested & @Injectable. Verifications Verifications comes after code under test and you are verifying against invocations that actually occurred during the test. Here is an example and it also shows yet another way to...


  • In the deep trenches with JMockit Part 1

    JMockit is a class loader remapping toolkit that you can use to replace your dependency classes by remapping them to your desired behavior when unit testing. Under the hood, JMockit uses Java instrumentation API to make direct byte code modifications at runtime. JMockit framework abstracts this complex capability with its...


  • STARWEST 2015

    Highlights from STARWEST 2015 On the whole, I learnt more in this conference than I did 3-4 years ago. You can easily tell when I tweet more and blog more. Here are some of the more prominent messages I gathered from the conference. Definition of testing (that is different from...


  • Fluent testing with the builder pattern

    I've been asked repeatedly - what are fluent APIs and how does it relate to the builder pattern. These are good questions and instead of just sending a link or two, here's a blog about it.First, what is Fluent API or interface?"Fluent interface (as first coined by Eric Evans and Martin...