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

YouTube

Testing Spring Boot Applications

Spring I/O via YouTube

Overview

Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Explore advanced techniques for testing Spring Boot applications in this comprehensive conference talk from Spring I/O 2016. Learn how to effectively unit test classes, implement mocking, test persistence layers, validate remote REST calls, and assess MVC controllers. Discover strategies for structuring applications to enhance testability and leverage new features in Spring Boot 1.4 for simplified testing. Dive into topics such as integration testing, configuration management, and upgrading to Spring Boot. Master the use of annotations, web environments, and auto-configuration in testing scenarios. Gain insights on best practices for naming conventions, constructor injection, and exception handling. Explore practical examples using tools like Mockito, DataJPA, and REST templates. Enhance your understanding of mock beans, JSON test setups, and web MVC annotations to create robust and reliable tests for your Spring Boot applications.

Syllabus

Intro
Remote Service
Controller
Repository
Ymock
Integration Test
Configuration
Upgrading
Moving to Spring Boot
Annotations
Web Environment
Spring Boot Test
Dropback Classes
Upgrade to assertJ
What to import
Remove autowire annotation
Why use constructor injection
Expecting exceptions
Testing the message
Consistent naming
Mockito
Constructor Style
Testing
Auto Configuration
Vehicle Identification Number
Naming Suggestions
DataJPA
Spring Data Repository
Auto Configure
Auto Configure with Existing Tests
Shut Down MySQL
Auto Configure Test Database
Remote Services
Rest Template Recap
Protected Method
Rest Service Server
Happy Path
Mocking
JSON Test Setup
Remote Service Test
Testing Mocks
Testing Integration
Testing Service
MockBean
Mock injected
Test results
New features
Web MVC annotation
Mock MVC annotation
Getting a vehicle
Service Test
Mock MVC Test
Spring Boot MVC
Compulsive Notation
Balancing
Mock Bean
MachBeam
Other Applications
MetaAnnotations

Taught by

Spring I/O

Reviews

Start your review of Testing Spring Boot Applications

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.