Home » Author Archives: Julen Pardo

Author Archives: Julen Pardo

Julen Pardo
Julen holds his Bachelor's Degree in Computer Engineering from Mondragon Unibertsitatea, in Spain. Currently he is working in Munich, Germany, as Software Engineer. He contributes to open source projects with plugins, and he also develops his own, open-source projects. Julen is continuously trying to learn and adopt Software Engineering principles and practices to build better, more secure, readable and maintainable software.

How to Install IntelliJ IDEA on Ubuntu Linux

Some years ago, Eclipse was probably the king of the IDEs of Java development. But, in the last times, IntelliJ IDEA, from JetBrains (developers of WebStorm, PhpStorm or TeamCity, among many other IDEs and software engineering tools), has become very popular, being considered by many developers the best Java IDE nowadays. This tutorial will show how to install it on ...

Read More »

IntelliJ IDEA Format Code Example

IntelliJ IDEA is currently, probably, the most popular IDE for Java projects. Among many cool features, one of the most useful is that it allows to format our code in a completely customized way. In this example, we will see how it works. For this tutorial, we have used: IntelliJ IDEA 2016.2.2 Community Edition (free and open source). Linux Mint ...

Read More »

IntelliJ IDEA Create Test Tutorial

IntelliJ IDEA is one of the most used Java IDE. If we want to create tests for our IntelliJ project, it may not be very intuitive, so, in this tutorial we will see how to create them. For this tutorial, we will use: IntelliJ IDEA 2016.2.2 Community Edition (free and open source). Linux Mint 18. You can download the IDE ...

Read More »

IntelliJ IDEA Keyboard Shortcuts Tutorial

The developers, systems administrators, etc., when dealing with files, have the need of being able to perform actions without depending on the mouse. Not only for speed and comfort, but also to avoid injuries related to the mouse usage, like RSI ones (Repetitive Strain Injury). This tutorial will show the most useful shortcuts for IntelliJ IDEA, the JetBrains IDE for ...

Read More »

Mockito List Matcher Example

In the Mockito Tutorial for Beginners, we saw a general overview of the use of Mockito framework for Java unit tests. In this example,we will see how are and how to use the Mockito Matchers for List elements. For this example, we will use: Java 1.7.0 Eclipse Mars 2, release 4.5.2. JUnit 4. Mockito 1.10.19. Tip You may skip project ...

Read More »

PowerMock Mock Static Method Example

In the Mockito Tutorial for Beginners, we did a general introduction to the Mockito mocking framework for JUnit tests. One the things that we did not see, was the mocking of static methods. That is because Mockito doesn’t allow to do that. To solve this, we will use PowerMock, a framework that extends Mockito’s functionalities (and other mocking frameworks’ also), ...

Read More »

Initializing Mockito with InitMocks

In the Mockito Tutorial for Beginners, we saw a general overview of the use of Mockito framework for Java unit tests. In this example, we will see how we can use the InitMocks initialization method, for an easier but expressive way of creating the mocks, specially useful when we have several dependencies to mock. For this tutorial, we will use: ...

Read More »

Mockito Tutorial for Beginners

Mocking is a testing technique widely used not only in Java, but in any other object oriented programming language, that consists in exchanging . There are several mocking testing frameworks for Java, but this tutorial will explain how to use Mockito, probably the most popular for Java language. For this tutorial, we will use: Java 1.7.0 Eclipse Mars 2, release ...

Read More »