Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

Coursera

Testing and Advanced REST with Spring Boot

Packt via Coursera

Overview

Coursera Flash Sale
40% Off Coursera Plus for 3 Months!
Grab it
Updated in May 2025. This course now features Coursera Coach! A smarter way to learn with interactive, real-time conversations that help you test your knowledge, challenge assumptions, and deepen your understanding as you progress through the course. Dive into the world of modern Java application development with this comprehensive course on testing and building REST APIs using Spring Boot. Learn to master JUnit and Mockito to create robust, reliable, and maintainable unit tests. Gain practical insights into setting up and optimizing build tools like Maven and Gradle, and discover how these tools enhance project management and dependency handling. Starting with foundational concepts, you'll explore JUnit and Mockito in-depth, learning how to write efficient tests and leverage annotations to simplify your workflow. Transition seamlessly into using Maven and Gradle for dependency management, while understanding the lifecycle and structure of these tools in Spring Boot projects. The course culminates in an extensive deep dive into REST API development with Spring Boot. From creating simple resources to implementing complex operations and best practices, you'll build a fully functional REST API. You’ll also explore integration and unit testing, security configuration, and advanced topics like Mock MVC and Spring Security. This course is perfect for Java developers looking to enhance their skills in testing and REST API development. Prior knowledge of Java and basic Spring Boot concepts is recommended. Whether you're an intermediate learner or an advanced developer, you'll find valuable takeaways to improve your projects.

Syllabus

  • Introduction to JUnit in 5 Steps - V2
    • In this module, we will introduce you to JUnit, a widely used testing framework for Java applications. You'll learn step-by-step how to create and run your first JUnit project, write your first unit test, and explore essential annotations and assert methods to enhance your testing process.
  • Introduction to Mockito in Five Steps - V2
    • In this module, we will dive into Mockito, a powerful mocking framework for Java. You’ll set up a Spring Boot project, learn how to address challenges with stubs, and write your first Mockito tests using annotations like @Mock and @InjectMocks. By the end, you'll have a solid understanding of how Mockito simplifies unit testing.
  • Introduction to Maven
    • In this module, we will delve into Maven, a critical tool for Java developers. You'll learn to create and manage Spring Boot projects with Maven, explore the POM file structure, and understand the build lifecycle. By the end, you'll be equipped to use Maven effectively in your projects.
  • Introduction to Gradle
    • In this module, we will introduce Gradle, a modern build tool gaining popularity among Java developers. You'll learn to create Spring Boot projects, configure Gradle build and settings files, and explore Gradle plugins. We’ll also compare Maven and Gradle to help you make informed decisions.
  • Spring Boot Deep Dive with a REST API - V2
    • In this module, we will take a deep dive into Spring Boot development, focusing on building a comprehensive REST API for a survey questionnaire. You'll create and manage resources, implement CRUD operations, and explore advanced topics like Spring Boot Data JPA, integration testing, and securing your API with Spring Security.

Taught by

Packt - Course Instructors

Reviews

Start your review of Testing and Advanced REST with Spring Boot

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.