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...
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...