Unit testing plays a major role in the software development life cycle. Unit testing helps to write bug-free, quality, and efficient code. When we are using the TDD approach for a particular project unit testing is a must. In java, we normally use Junit framework to write unit test cases and Mockito to mock objects for unit testing.

We can write test cases for an individual code block, if they are public or protected or default. But for private methods?? Can we write unit tests to test private methods? Yes!! we can.

The best way to test a private method…

What is Liquibase?

Liquibase is an open-source library that use to track and manage the database schema level changes of a project. Basically, Liquibase is a database change management tool. Rather than writing and running DDL SQL directly against the database to create, update or drop database objects, developers can define their desired database changes in separate files and able to execute these changes against database

Why Liquibase?

There are some common problems developers face when they are developing a project.

  1. Developers have to maintain manually what are the database changes they have made.
  2. When moving project to a new…

Chanaka Rathnakumara

Tech Enthusiast || Full Stack Developer || Freelancer

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store