spring-guides / gs-spring-boot

Building an Application with Spring Boot :: Learn how to build an application with minimal configuration.
https://spring.io/guides/gs/spring-boot/
Apache License 2.0
890 stars 4.51k forks source link

Adding some starting points for testing the controller #18

Closed igilham closed 9 years ago

igilham commented 9 years ago

How do you feel about including some starting points for unit and integration testing to the guide?

It took me a few hours and much googling of blogs to figure out how to do this in one of my own applications so I believe it would be useful to include some notes on how to test Spring Boot Web applications at the end of the guide. I've made my changes to the 'complete' project.

I can't seem to get gradle to work in my environment so complete/build.gradle may not be quite right.

gregturn commented 9 years ago

Looks pretty good. I'll take some time to check it out soon.

igilham commented 9 years ago

I've written a related blog post on getting these tests up and running.