Setting Up a Test Context7:53 with Chris Ramacciotti
Wherever possible, we want to leave Spring out of our tests and focus completely on the "unit" under test. However, sometimes it's necessary to access Spring components, such as services, repositories, or other beans. For this reason, we can setup a minimal test
ApplicationContext to save us the overhead of starting an entire Spring
ApplicationContext. This video demonstrates one approach for setting up a test context.
Sync Your Code to the Start of this Video
git checkout -f v7
Using Git with this Workshop
See the README on Github for information on how to use Git with this repo to follow along with this workshop.
You need to sign up for Treehouse in order to download course files.Sign up