Haider Ali

Technology

Creating derived fields in json schema (version – draft -04)

Sometimes we need dynamic forms where some field's visibility/values are dependent on values of other fields. Json schema provides a good option for creating dynamic forms but has very little documentation. Json schema provides fairly coarse grained mechanism for conveying what elements needs to be present. Using anyOf condition, a...

04-Feb-2016

Automation Testing, Java/JVM

Mocking static methods in JUnit using PowerMock

We usually need to mock lots of functionality while writing unit tests. In JUnit we have many frameworks to achieve this, but PowerMock is very powerfull API to mock classes. For mocking static functions we have a bit different approach due to their different nature. Assuming we have two utility classes with static functions and one...

25-Jun-2015