JUnit
-
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 » -
Enterprise Java
Spring Boot testing with JUnit 5
JUnit 5 (JUnit Jupiter) is around for quite some time already and it is equipped with tons of features. But…
Read More » -
Enterprise Java
Seven Testing Sins and How To Avoid Them
Throughout this article I will be using Java within code snippets, whilst also using JUnit and Mockito. This article aims…
Read More » -
Enterprise Java
Crossing The JUnit Streams
One of the nice things about JUnit 5 migration is that you can run your JUnit 4 tests in vintage…
Read More »