Do you want to know how to develop your skillset to become a Java Rockstar?
Subscribe to our newsletter to start Rocking right now!
To get you started we give you our best selling eBooks for FREE!
1. JPA Mini Book
2. JVM Troubleshooting Guide
3. JUnit Tutorial for Unit Testing
4. Java Annotations Tutorial
5. Java Interview Questions
and many more ....
Email address:

Convenient mocking in Mockito with JUnit 5 – the official way

Starting with the version 2.17.0 Mockito provides the official (built-in) support for managing a mocking life cycle if JUnit 5 is used. Getting started To take advantage of the integration, the Mockito’s mockito-junit-jupiter dependency is required to be added next to the JUnit 5’s junit-platform-engine one (see below for details). After that, the new Mockito extension MockitoException for JUnit 5 ...

Read More »

Java 11 Will Include More Than Just Features

What are the upcoming features in Java 11, and how will it be different from Java 9 and 10? Java 10 might be the new kid on the block, but it’s already time to talk about Java 11. Oracle’s move towards a faster release cycle means that more features and abilities are coming our way, faster than ever before. Although ...

Read More »

Creational Design Patterns: Builder Pattern

Previously we had a look at the factory and the abstract factory pattern. Those patterns serve their purpose and can be really useful however there are use cases where we have to create a very complex object and creating it requires different steps each one requiring different actions. In such cases the builder pattern can be really useful. The builder ...

Read More »

Creational Design Patterns: Factory Pattern

Previously we had an introduction to the Creational Patterns and used the Abstract Factory Pattern in order to create a families of objects. The next pattern is the Factory Pattern. Factory pattern is one of the most used patterns when it comes to Java. So what is the Factory Pattern all about? The factory pattern deals with creating objects without ...

Read More »

Creational Design Patterns: Abstract Factory Pattern

The Abstract Factory Pattern is a creational pattern and is one of the most popular patterns along with the builder and the factory pattern. Creational patterns are used in order to create objects instead of creating objects directly using a constructor. The Abstract Factory Pattern provides a way to encapsulate a group of individual factories that have a common theme ...

Read More »

RxPreferences and Dagger

I have been rewriting a Settings (Preferences) activity for an old Android app. Since I was using RxJava in the app, I decided to try out RxPreferences which allows you to use SharedPreferences with a reactive wrapper. I found it quite good to use, although the blog post that accompanies it is a bit out of date. While I did’t ...

Read More »

Spring Data MongoDB Tutorial

spring-interview-questions-answers

In today’s world it is very important to get the application up and running as soon as possible. The application should also be easy to develop and maintain. Spring is such framework which provides the ease of integration with a lot of different frameworks which makes it easy to develop an application using Spring. One such integration is integration of ...

Read More »

Arquillian Chameleon. Simplifying your Arquillian tests

Arquillian Chameleon was born to simplify the configuration of Arquillian tests. I am proud to announce that with version 1.0.0.CR2 we have not only simplified how to configure Arquillian tests but also how to write them. With this new release, three new simplifications have been added: You only need to use 1 (or at most 2 dependencies just in case you want to ...

Read More »