TDD vs. BDD vs. ATDD — Developers’ Methodologies to Smoothly Navigate Complex Development Processes

Introduction

The last decade in the history of humanity can be easily called the technological revolution. The pandemic made it starker than ever before. The developers need to keep pace with the new languages, frameworks, tools, and processes that come into being every second.

To write code is a developer’s second nature. But, what code to write, how to write it, when to write it, and for what purpose may easily overwhelm even the most experienced and expert developers when it is raining new codes and processes day in and day out.

Unit Testing Void Methods with Mockito and JUnit

Writing functionality is the main focus whenever we are writing a software program, but it is equally important that we make sure our code works the way we intended it to. And how do we do that? By writing unit test cases. They are used to test the smallest functionality of code. Unit test cases are an essential part of software development. In this blog, we are going to cover one of the testing scenarios and unit test cases for void methods.

How to Test Void Methods 

As we already know that our aim is to test void methods in a class. But it is also really important to understand why we test void methods.