Mockito is an open source framework that allows you to easily create mocks (test doubles). Mocks are objects that have return values to method executions made during the test and has recorded expectations of these executions. Mocks can also throw an exception if they receive a call they don’t expect. They are checked during verification to ensure … Continue reading Mockito 101 – Unit Testing in Java Apps
Month: January 2020
How do you undo a git pull or git merge?
Whoa so you just pulled from the master branch and lost your local changes which were committed but not pushed to repo? No problem!! You can use the following command: $ git reflog show "reflog" is used to reference logs, record when the tips of branches and other references were updated in the local repository. … Continue reading How do you undo a git pull or git merge?
Creating and Deploying a Quick WordPress app on Azure
In this tutorial we will see how we can quickly get started with Microsoft Azure and create a simple web app on WordPress and deploy the same on Azure Prerequisites for this are Azure Free Subscription. and absic knowledge of cloud concepts Login into your Azure Portal. Click on "Create Resource" Azure Portal Search for … Continue reading Creating and Deploying a Quick WordPress app on Azure