JUnit
-
Enterprise Java
SpringRunner vs. SpringBootTest
Testing is essential for all applications, encompassing both unit and integration tests. The cornerstone for conducting integration tests lies in…
Read More » -
Core Java
Test Repository with @DataJpaTest and JUnit
1. Introduction In today’s software development landscape, ensuring the reliability and correctness of applications is paramount. Testing plays a crucial…
Read More » -
Enterprise Java
A Comprehensive Guide On JUnit 5 Extensions
JUnit is one of the most popular unit testing frameworks in the Java ecosystem. The JUnit 5 version (also known…
Read More » -
Enterprise Java
TestNG vs. JUnit Testing Framework: Which One Is Better?
Introduction Software Development goes through many phases like requirement gathering & analysis, communication, design, code building, testing, and release. A…
Read More » -
Enterprise Java
Testing with Mockito
1) Register MockitoExtension @ExtendWith(MockitoExtension.class) class ObjectTest { static final Long ID = 1L; 2) Create the mock @Mock private ObjectRepo…
Read More » -
Enterprise Java
Testing Expected Exceptions with JUnit 5
This post shows how to test for expected exceptions using JUnit 5. If you’re still on JUnit 4, please check…
Read More » -
Enterprise Java
Extending JUnit 5
A look into the past With JUnit 4 we have the option to run test with a custom JUnit runner…
Read More » -
Enterprise Java
Microservices in Publish-Subscribe communication using Apache Kafka as a Messaging Systems and validated through Integration Test
Publish-Subscribe Messaging systems play an important role in any enterprise architecture as it enables reliable integration without tightly coupling the…
Read More » -
Enterprise Java
JUnit 5 and Selenium – Using Selenium built-in `PageFactory` to implement Page Object Pattern
Selenium is a set of tools and libraries supporting browser automation and it is mainly used for web applications testing.…
Read More »