test driven development

Unit testing with Mockito Framework

Reading Time: 3 minutes In this blog, we are going to learn about how we can use mockito framework to perform unit testing. Mockito framework provides us several methods which we can use to perform unit test. What is Unit Testing Unit testing is a software testing technique in which we only test a single component of the software. We ignore the output of the dependent module and test Continue Reading

Unit testing void methods with Mockito and JUnit

Reading Time: 3 minutes 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, Continue Reading

TDD: What & How?

Reading Time: 3 minutes Programming is like exploring a dark house. You go from room to room to room. Writing the test is like turning on the light. Then you can avoid the table, furniture and save your shins i.e resulting clean design from refactoring. Then you are ready to explore the next room. There is famous saying in software development that If it isn’t tested, it’s already broken. Continue Reading