Java

In this REST Assured tutorial, I will demonstrate how to evaluate the JSON content that is returned in the response body of an HTTP response. What is REST Assured? REST Assured is a Java-based library for testing RESTful web services. It provides a domain-specific language (DSL) for writing tests that interact with web services using…

Read More Validate JSON Response with REST Assured

In this lesson, you will learn about the history of Java, types of Java programs, Java Virtual Machine (JVM), Java Standard Library and current Java editions. History Java was developed in 1991 by the Green Team, comprising James Gosling, Mike Sheridan, and Patrick Naughton, as a pilot project for a simple language to program smart…

Read More Introduction to Java

This short REST Assured tutorial will teach you how to validate the HTTP Response Status Code while testing a RESTful Web Service endpoint. Each HTTP Response includes a status code, and by examining the status code value, we can determine if the HTTP Response was successful or not. Let’s explore how we can use REST…

Read More Validate HTTP Status Code: RestAssured

In this blog post, I will share the Spring annotations used to map HTTP requests to specific handler methods. These annotations include @PostMapping, @GetMapping, @PutMapping, and @DeleteMapping. While most Spring Boot applications use the @RequestMapping annotation, which I will also cover in this post, I’ll begin with the newer shortcut annotations that have been available…

Read More Spring Annotations @PostMapping, @GetMapping, @PutMapping and @DeleteMapping

In this Spring Security tutorial, you will learn how to enable and use the Method Level Security with a @Secured annotation. @Secured is a Spring Security annotation used to specify that a method should be executed only if the authenticated user has the required roles or authorities. When you use this annotation, you can specify…

Read More Spring Security @Secured: Method-Level Protection

In this Java tutorial, I am going to share with you different ways how to generate a random string of characters. You will learn to generate the following types of random Strings of characters: alpha-numeric String of characters of any length or of a specific length, Letters only, Numbers only. I hope you will find…

Read More Random String of Characters in Java. Different Examples.