Integration Testing in Wordz

Let’s conduct an integration test for our Wordz project focusing on fetching data from the database.

In this lesson, we’ll review an integration test for our Wordz application to get a feel for what they look like.

Fetching a word from the database

As part of our earlier design work, we identified that Wordz would need a place to store the candidate words to be guessed. We defined an interface called WordRepository to isolate us from the details of storage. At that iteration, we had only got as far as defining one method on the interface:

Get hands-on with 1200+ tech skills courses.