Mockito 101 – Unit Testing in Java Apps

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

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

Installing and setting PowerShell Core

Getting started with Azure requires PowerShell & Bash CLI and best to install PowerShell Core rather than pre-installed Windows PowerShell to make use of advanced Azure Modules. Here is how to get started with installation! Download PowerShell Core v6.2 from https://github.com/PowerShell/PowerShell/releases We can then install Azure modules in PowerShell Core using below command. This command … Continue reading Installing and setting PowerShell Core

Creating AWS resources in four ways using AWS Console, CLI, CloudFormation and Terraform!

This blog post will show you how to create an S3 bucket in AWS using four ways using AWS Management Console, AWS Cloudformation and Terraform! Let us begin! First Way: Directly using S3 Management Console Go to AWS management console > Go to S3 Service Click on create bucket button and provide details for the … Continue reading Creating AWS resources in four ways using AWS Console, CLI, CloudFormation and Terraform!

Terraform Setup on Windows to create AWS resources

Let us see how can we setup Terraform CLI on Windows and create some resouces on AWS cloud. Step 1: Download terraform from https://www.terraform.io/downloads.html Step 2: Unzip the file and place it in desired location Step 3: Set path in System Environment Variables Step 4: Test the installation CMD prompt Step 5: Configuring and Creating … Continue reading Terraform Setup on Windows to create AWS resources

Enabling command prompt inside a Container

To run another command inside a container you use docker exec every time but by enabling shell or terminal access in the container you won't have to use this again. Here is the docker command which you use to enable shell access inside a container: $ docker exec -it <container ID> shwhere exec is used … Continue reading Enabling command prompt inside a Container