best practices

Design Patterns

Good software is always a well-designed software. Software engineering takes good thinking, reviewing past solutions and paying attention to the difficulties that we had to go through when making changes, refactoring, testing our solutions.But as we accumulate experience, we inevitably ask ourselves: do we need to reinvent the design all the time?No, of course – …

Design Patterns Read More »

Monitoring, and its role in incident response, capacity planning and developing new products

At the base of a solid technology team is monitoring. Monitoring is your eyes – if you don’t monitor you don’t know if your processes are running fine. In fact you don’t know if they are running at all. Plus, you don’t want to find out about the crash from your business client, right? Incident …

Monitoring, and its role in incident response, capacity planning and developing new products Read More »

Improve quality of your testing with Parameterized JUnit tests

Junit Parameterized tests allow a developer to run the same test multiple times with different parameter values.This is very useful feature that greatly improves quality of testing. In order to use parameterized tests you need to annotate test class with @RunWith(Parameterized.class).Then you create a public static method that returns a Collection of Objects – this …

Improve quality of your testing with Parameterized JUnit tests Read More »

Mockito Test Cases and Tests where exceptions are expected

To write quality code it’s necesary to test it, as everybody knows and hopefully practices. How do you avoid super complex, fragile Unit tests that span hundreds of lines of code? The answer is you don’t use the real boiler-plate objects, you use test double objects (mock objects). Let’s use Mockito to demonstrate how this …

Mockito Test Cases and Tests where exceptions are expected Read More »