Java

How does the Set interface work in Java?

The Set interface inherits from the Collection interface. There are several implementations of the Set interface, such as HashSet, LinkedHashSet, and TreeSet, each with its own characteristics. Unlike the List interface, we cannot access an element by index in a Set, but it is possible to iterate over the elements. We will see some usage…

Read More
Unit test

How to do a Parameterized Unit Test in Quarkus?

Parameterized unit tests are beneficial for applications as they simplify the process of writing tests, allowing us to run a single test multiple times with different parameters. Requirements I’m using JDK 17, Intellij and Quarkus Version 3.4 on the project. Practice I created this class: These notations represent validations applied to the fields. For instance,…

Read More
Unit test

How does unit test work ? How to do unit test on Quarkus ?

Testing a system is very important to maintain quality. There are some types of tests. Closer to the base of the pyramid, less cost and time are required.Let’s focus on the base of the pyramid. Unit test serves to validate the smallest code units. Generally a system accesses some external service such as a database,…

Read More