Java test with JUnit

Software testing is a powerful tool when creating all types of applications. That’s why it is also so important to test it in details so that a chance of an unexpected fail is minimal. We say it so: all code you write must be tested with minimum 2 types of tests: positive and negative. A positive test is a test that verifies a correct functionality, a negative test verifies that a function will fail or throw an exception. Let’s see how it works.

XPath – how to create a custom rule

After I began to use PMD and tried to write my first custom XPath rules, I realised that there aren’t very much information about it. So I needed to figure out almost everything by myself. Here I’ll try to explain what I’ve figured out.