How to use Mockito to supercharge your Java Testing

Mockito is a powerful and easy-to-use mocking framework for Java applications. With Mockito, you can easily create mock objects that simulate the behavior of real objects in your application, without actually invoking their methods. We will show at first how to plug Mockito in JUnit Tests. Then, we will integrate Mockito in Quarkus Tests.

Read more

Mastertheboss privacy policy note

Within the entire mastertheboss organization and while accessing the website www.mastertheboss.com (the “Controller”), your privacy is one of our fundamental commitments, and therefore, we take utmost care to process your personal data in accordance with the principles set forth in the applicable legislation, including without limitation the General Data Protection Regulation no. 679/2016 (“GDPR”). The … Read more

Gradle tutorial for WildFly users

This is an updated tutorial for getting started with Gradle. You will learn how to compile and assemble a Jakarta EE 10 application in a matter of minutes and we will deploy it on WildFly. Installing gradle More and more developers are turning to Gradle for creating high performance builds. There are several advantages when … Read more

TestNG Configuration file in a nuthell

TestNG is a testing framework inspired by JUnit but introducing a whole set of new functionalities. Let’s see how to create a sample project which uses a testng.xml configuration file to drive a Test suite TestNG Example Test suite Let’s write a proof of concept Hello World example with TestNG. In order to use it, … Read more

Getting started with TestNG

TestNG is a testing framework inspired by JUnit but introducing a whole set of new functionalities. In this tutorial we will walk through the set up and execution of some example tests with TestNG.

Read more

Getting started with JUnit Assertions

In this tutorial we will learn how to use JUnit assertions. An assertion is one of a number of static methods on the org.junit.jupiter.api.Assertions class. Assertions are used to test a condition that must evaluate to true in order for the test to continue executing. If an assertion fails, the test is halted at the … Read more