Spring: Test-Driven Development with JUnit
1h 13mIntermediate2017-09-14
Authors

Shonna Smith
Entrepreneur, Agile Coach, Enterprise Software Developer
Course details
Practicing test-driven development in the Spring framework—or any framework, for that matter—can help you speed up your software release cycles, and ensure that you end up with a high-quality product. Learn the tricks for using Spring and JUnit— an open-source testing tool—together, and how to use this power combo across your entire backend stack to achieve optimal test coverage. In this course, discover how (and why) to use Spring and JUnit for test-driven development. Instructor Shonna Smith also shows how to lay the groundwork for testing some typical components in your backend application: @Service, @Controller, and @Repository components. Throughout the course, Shonna provides hands-on examples of how to apply these concepts in a real-world application.
Learning objectives
Why test-driven development matters
Test planning for @Service, @Controller, and @Repository components
Writing integration tests for @Service, @Controller, and @Repository components
Writing unit tests for @Service, @Controller, and @Repository components
Creating integration test datasets
Making a feature test suite
Making a continuous integration test suite
Learning objectives
Why test-driven development matters
Test planning for @Service, @Controller, and @Repository components
Writing integration tests for @Service, @Controller, and @Repository components
Writing unit tests for @Service, @Controller, and @Repository components
Creating integration test datasets
Making a feature test suite
Making a continuous integration test suite
Skills covered
JUnitSpring FrameworkSpring BootSpringSoftware TestingDevOps FoundationsDevOpsSoftware Development ToolsOpen SourceSoftware Development
Concepts
0. Introduction
- 01 - Welcome
- 02 - What you need to know
- 03 - Using the exercise files
1. Review of TDD and Application
- 04 - Why TDD matters
- 05 - Introducing the sample application
2. Testing Spring Service Components
- 06 - Test planning for @Service components
- 07 - Write integration tests for @Service
- 08 - Write unit tests for @Service
3. Testing Spring Controllers
- 09 - Test planning for @Controller components
- 10 - Write integration tests for @Controller
- 11 - Write unit tests for @Controller
4. Testing Spring Data Access Components
- 12 - Test planning for @Repository components
- 13 - Write integration tests for @Repository
- 14 - Create integration test datasets
5. Creating Test Suites - Putting It All Together
- 15 - Make a feature test suite
- 16 - Make a continuous integration test suite
Conclusion
- 17 - Next steps