Angular Mutation Testing

How Angular Supports Mutation Testing With Example

Introduction This blog post is designed to serve as a comprehensive guide for developers looking to apply mutation testing into their Angular application. If you are that developer, you will be able to carry out mutation testing with ease by following the working configurations and examples provided below. If you just happened onto this tutorial, you will gain a decent understanding of mutation testing. Please see here for a definition of the mutation test....

August 26, 2022
Angular: Getting Started With Httpclient Unit Testing

Angular: Getting Started With Httpclient Unit Testing

Introduction This tutorial will help you understand the basics of unit testing for Angular HttpClient. Angular includes a testing module named HttpClientTestingModule that provides an HTTP mocking service, HttpTestingController to intercept the HTTP request and provide a mock response for it. Setup We begin by writing a service to fetch blogs from an application server. Use the following Angular cli commands to generate a service. Generate a module ng g module blogs Generate a service ng g service blogs/blog Now create the following classes inside the app folder....

July 26, 2022
Log4j How to Log Message to Console

Log4j How to Log Message to Console

Introduction This tutorial will help you to log all level messages into console using Log4j plugin. In previous tutorial we have seen how to setup the log4j plugin in Maven and simple logging application. If you need to understand the basic of Log4J the visit previous tutorial. What we will do in this tutorial We saw in the previous tutorial that Log4J’s default configuration set the logging level to Error, causing it to log only errors and fatal messages to the console....

June 1, 2022
Getting Started With Log4j

Getting Started With Log4j

Introduction For Java applications, Log4j is a commonly used and trusted logging tool. When an application is deployed to an application server, logging is a must-have feature. In this tutorial, we’ll see how to set up Log4j for a simple Java application. You can find all code related to this tutorial inside GitHub project. Why do we need Logging Logging is an important part of the application since it records user actions, input requests and output responses, error messages, and more....

May 30, 2022
Maven Create Jacoco Code Coverage Report

Maven Create Jacoco Code Coverage Report

Introduction In this tutorial we will see how to setup the JaCoCo plugin to generate a code coverage report for a Maven project. In order to generate a unit test coverage report, we should have sufficient unit test cases in our application. For this tutorial, I am referring to a Maven project which has a string manipulation method. You can find this project at this GitHub location. There are a few steps that need to be taken to produce the report....

May 26, 2022
Spring Boot Resttemplate Guide With Example

Spring Boot Resttemplate Guide With Example

What is RestTemplet? RestTemplate is a HTTP Client library that provides basic APIs for executing different HTTP type requests. RestTemplate is one of the HTTP libraries available on the market. The Spring Boot team designed and maintains it. As previously said, it is a client library, which means it may be utilised in our application as a stand-alone dependency. To utilise it, you don’t require a complete Spring boot application....

April 22, 2022
How to Change a Git Commit Message

How to Change a Git Commit Message

Introdcution In this tutorial, we’ll go over how to fix Git commit messages that have been committed to a local or remote Git repository. Reason to change commit message? When working with Git, there could be several reasons to update the commit message. Some of the common reasons are as follows Message contains a typo. Missing intent of commit. Remove any confidential information. Correct issue ticket number to connect to an issue tracker such as Jira....

April 19, 2022
How to Enable Sql Logs in Spring Boot Application

How to Enable Sql Logs in Spring Boot Application

Introduction This tutorial will demonstrate how to enable and disable SQL log statements in a Spring Boot application in order to debug SQL flow. Problem You will frequently need to debug the SQL statement while developing a Spring Boot application with a SQL database. SQL debug logs can assist you figure out what’s wrong with JPA statements and whether or not there’s a problem with database connectivity. Example If you’ve built custom Spring data JPA methods and need to know what SQL statement is being utilized behind them,...

April 8, 2022
Cucumber Setup Using Gradle

Cucumber Setup Using Gradle

Introduction This tutorial will help you configure Cucumber into a Java project using the Gradle build tool. Cucumber is a test automation tool that supports Behavior-Driven Development (BDD). It is written in plain English text called “Gherkin.” Cucumber enables you to write test cases that anyone can easily understand, regardless of their technical knowledge. Setup First, create a Gradle project using the gradle init command. gradle init Complete the Gradle wizard to create a project....

April 5, 2022
Getting Started With Micronaut Using Gradle

Getting Started With Micronaut Using Gradle

Introduction In this tutorial, we will create a Micronaut application using Gradle. What you will need Java installed on your machine Gradle installed on your machine Text Editor Steps First create your project folder, we will make a folder called “micronaut-project” for this tutorial. The second step is to add the build.gradle file inside the project folder. This will contain a script to build the Micronaut application. Now update the build....

March 15, 2022