Gatling vs JMeter vs The Grinder: Comparing Load Test Tools DevOps Testing 1. Introduction Choosing the right tool for the job can be daunting. In this tutorial, we’ll simplify this by comparing three web application load testing tools – Apache JMeter, Gatling, and The Grinder–against a simple REST API. 2.… Continue Reading gatling-jmeter-grinder-comparison

How to Test the @Scheduled Annotation 1. Introduction One of the available annotations in the Spring Framework is @Scheduled. We can use this annotation to execute tasks in a scheduled way. In this tutorial, we’ll explore how to test the @Scheduled annotation. 2. Dependencies First, let’s start creating a Spring Boot Maven-based application… Continue Reading spring-testing-scheduled-annotation

Guide to ApplicationContextRunner in Spring Boot 1. Overview It’s well known that auto-configuration is one of the key features in Spring Boot, but testing auto-configuration scenarios can be tricky. In the following sections, we’ll show how ApplicationContextRunner simplifies auto-configuration testing. 2. Test Auto-Configuration Scenarios ApplicationContextRunner is a utility class which runs… Continue Reading spring-boot-context-runner

A Quick Guide to @TestPropertySource  1. Overview Spring brings many features to help us with testing our code. Sometimes we need to use particular configuration properties in order to set up the desired scenario in our test cases. In these situations, we can make use of the @TestPropertySource annotation. With this… Continue Reading spring-test-property-source

Override Properties in Spring’s Tests 1. Overview In this tutorial, we’ll have a look at various ways to override properties in Spring’s tests. Spring actually provides a number of solutions for this, so we have quite a bit to explore here. 2. Dependencies Of course, in order to work with… Continue Reading spring-tests-override-properties