Verify method was called n-times with Mockito

This short article will explain how to verify that Mock’ method was called n-times with the help of Mockito testing framework.

Continue reading

Posted in Testing | Tagged , , , | Leave a comment

How to check if two lists are equal in Java

This short article will explain to you what List equality means and how to compare two Java lists against each other.

Continue reading

Posted in Testing | Tagged , , , , | Leave a comment

How to convert a Map to an Array in Java

This tutorial is about several approaches to converting Java’s Map interface implementations into the Java array.

Continue reading

Posted in Language basics | Tagged , , , , , , , | Leave a comment

How to connect Jira with IntelliJ IDEA

For ease of development, we can connect the IntelliJ IDE with the Jira ticket service.

Continue reading

Posted in Tutorials | Tagged , , | Leave a comment

How to sort a map with Java 8

This tutorial will show how to sort Map implementations with the map’s key or value properties.

Continue reading

Posted in Tutorials | Tagged , , , , , , | Leave a comment

How to load files from Spring JUnit test resources folder

In this short tutorial we will show you how to read the files from the /src/test/resources directory path.

Continue reading

Posted in Tutorials | Tagged , , , , , , , | Leave a comment

How to initialize an array with zero values in Java

This article will look at how to fill up Java array with default values effectively on an array creation.

Continue reading

Posted in Language basics | Tagged , , , | Leave a comment

3 ways how to kill Spring Boot application at port 8080 on Windows

This article tries to answer one of the most often occurred questions connected with Spring Boot development. When developing a web application with Spring Boot, you might hit an error announcing that port 8080 is occupied. In this article, we will see why and how to solve this error. However, be sure that tutorial can help you solve the occupancy of any other port.

Continue reading

Posted in Bug hunt | Tagged , , , , , , , , , , , , , , , | Leave a comment

How to remotely debug Java application in IntelliJ

This tutorial will show you how to debug your JAR or WAR file in IntelliJ IDEA remotely and gives you hints on developing new features through the application stack.

Continue reading

Posted in Tips & tricks | Tagged , , , , , , , , , , , , , , | Leave a comment

How to trigger action with Scheduler and Quartz in Camel

In any project using Camel you might come to the stage you want to trigger action periodically.

We have recently looked on how to download file from Azure Cloud Storage in legacy application. With the help of Camel and in Java project, all was written in a couple of minutes. But what if you have a special case and your file is changing periodically. For example, every day or every minute?

This article will show you a couple of code examples on how to initiate an action when periodic change is required. This article will also show you how to start the action with Camel’s Scheduler and Camel’s Quartz2 components, mostly for your legacy Camel projects.

Continue reading

Posted in Tutorials | Tagged , , , , , , , , | Leave a comment