Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Testing Spring Boot Applications [Video]

DZone's Guide to

Testing Spring Boot Applications [Video]

In this talk we’ll cover the host of new features that have been added to Spring Boot 1.4 to help with testing everything from MVC controllers, marshaling, and more.

· Java Zone ·
Free Resource

Verify, standardize, and correct the Big 4 + more– name, email, phone and global addresses – try our Data Quality APIs now at Melissa Developer Portal!

In this talk, we’ll cover the host of new features that have been added to Spring Boot 1.4 to help with testing. We’ll discuss how to unit test your code, how (and when) to involve Spring in your tests, and talk about the various tools and libraries that you should be using. Taking a simple application, we’re going to add:

  • Unit tests for basic components.

  • Integration Tests for JPA entities and queries.

  • Tests for JSON marshaling and unmarshalling.

  • Tests for Spring MVC controllers.

  • Tests for remote RestTemplate calls (using mocking).

  • End-to-end integration tests (hitting a real HTTP endpoint).

We’ll also look a little bit at the internals of Spring’s testing support and pick apart how the magic actually works.

Recorded at SpringOne Platform 2016.
Speaker: Phil Webb

Developers! Quickly and easily gain access to the tools and information you need! Explore, test and combine our data quality APIs at Melissa Developer Portal – home to tools that save time and boost revenue. 

Topics:
spring boot ,testing ,java

Published at DZone with permission of

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}