This document provides instructions for a practice activity using Spring and Hibernate frameworks. It instructs the user to create a new FortuneService implementation that returns random fortunes from an array, then inject this new dependency into the existing Coach implementation. Finally, it asks the user to test the application to verify random fortunes are being retrieved.
This document provides instructions for a practice activity using Spring and Hibernate frameworks. It instructs the user to create a new FortuneService implementation that returns random fortunes from an array, then inject this new dependency into the existing Coach implementation. Finally, it asks the user to test the application to verify random fortunes are being retrieved.
This document provides instructions for a practice activity using Spring and Hibernate frameworks. It instructs the user to create a new FortuneService implementation that returns random fortunes from an array, then inject this new dependency into the existing Coach implementation. Finally, it asks the user to test the application to verify random fortunes are being retrieved.
This document provides instructions for a practice activity using Spring and Hibernate frameworks. It instructs the user to create a new FortuneService implementation that returns random fortunes from an array, then inject this new dependency into the existing Coach implementation. Finally, it asks the user to test the application to verify random fortunes are being retrieved.
1. Define a new implementation for the FortuneService.
a. Your fortune service should define three fortunes in an array. b. When the getFortune() method is called it should return a random fortune from the array.
2. Inject your new dependency into your Coach implementation.
3. Test your application to verify you are retrieving random fortunes.