Search results for: junit

In this tutorial, you will learn how to secure access to User’s Data in RDS using Lambda Authorizer. First, the Lambda Authorizer function will authenticate the caller by validating JWT using nimbus-jose-jwt library. After that, the Lambda Authorizer function will return an output object containing an IAM policy. The Authorizer will also return additional information…

Read More Lambda Authorizer – Secure Access to User’s Data in RDS

In this tutorial, you will learn how to implement the API Gateway Lambda Authorizer in Java. You will also learn how to make Lambda Authorizer validate Authorization JWT. First, we will create an API using API Gateway then we will make lambda function as an integration point for the GET method of our resource. After…

Read More API Gateway Lambda Authorizer Example in Java

In this tutorial, we will read user data from AWS RDS with an access token. You can have a look at the following tutorials before moving ahead. Build and deploy a Serverless Spring Boot Web Application with AWS Lambda AWS Lambda with Spring Boot – A Simple GreetMe Example Amazon Cognito User Authentication in Spring…

Read More Reading user data from AWS RDS with an access token

This tutorial is about creating an AWS Lambda function using Spring Boot and adding an S3 trigger to it. Amazon S3 or Simple Storage Service is a cloud object storage service offered by AWS. It is a scalable, high-speed, web-based cloud storage service to store data objects in a bucket structure. Ensure that you have…

Read More AWS Lambda with S3 Trigger using Spring boot

In this tutorial, we are going to see how to create a simple Spring Boot project containing a handler that takes the name of the user as a parameter and returns a welcome message. We are then going to deploy it as a serverless application on AWS Lambda and test it. The first step is…

Read More AWS Lambda with Spring Boot – A Simple GreetMe Example

Spring Boot is a popular framework for building Java-based web applications. It provides a simple and efficient way to build, deploy and run Java applications quickly. In this tutorial, we’ll explore the framework’s basics, including its features, advantages over the Spring Framework, and how to get started with creating your first application using it. Whether…

Read More Spring Boot: Getting Started Guide

In this tutorial, we are going to see how we can throw custom exceptions with a custom payload in a Spring Boot application and deploy it on AWS as a serverless Lambda function. Let us start by creating a simple Spring boot project. In this project, we are going to create a Request Handler that…

Read More Handle Custom JAVA Exceptions in AWS Lambda with Spring Boot

This tutorial is about creating Lambda functions from Spring Cloud Functions. Spring Cloud Functions provide a way to implement the business logic via functions and decouple code development from the runtime target. Hence, the developer can focus solely on the implementation of logic. The developer need not worry about the target endpoint type, connectivity, integration,…

Read More Create AWS Lambda Functions from Spring Cloud Functions

In this tutorial, we are going to see how we can use the AWS API Gateway as a trigger to an AWS Lambda function. This tutorial requires you to be familiar with building and deploying Serverless Applications with AWS Lambda. Prerequisite: Build and Deploy a Serverless Spring Boot Web Application with AWS Lambda Firstly, add…

Read More Trigger a Lambda Function Using AWS API Gateway

Build and deploy a Serverless Spring Boot Web Application with AWS Lambda This is a tutorial about creating a basic AWS Lambda function in Java using the Spring framework and requires you to have an active AWS account. If you don’t, go ahead and create one. Lambda is the serverless compute service provided by the…

Read More Build and deploy a Serverless Spring Boot Web Application with AWS Lambda

Testing Java with JUnit & Mockito This video course is for beginners and you do not need to have any prior Unit testing knowledge to enrol into this course. The course covers JUnit 5 basics as well as advanced topics. You will also learn to use another very popular testing framework for Java called Mockito.…

Read More My Video Courses

The below list of tutorials will help you learn how to test RESTful Web Services with the REST Assured framework. You might want to check the video tutorials page if you are interested in video tutorials. Testing RESTful Web Service API with REST Assured REST Assured HTTP Post Request ( Includes video tutorial ) REST Assured…

Read More Testing RESTful Web Services

In this tutorial, you will learn how to create an instance of @LoadBalanced RestTemplate and make it communicate with an internal microservice. For a step-by-step series of video lessons, please check this page: Spring Boot Microservices and Spring Cloud. Create RestTemplate Bean To create an instance of RestTemplate, you will need to first make sure…

Read More @LoadBalanced RestTemplate Call Internal Microservice