In a previous post I introduced thinking about (visual) components and used a Task Browser as an example of an user interface “component” .
I explained that using
- View Model(s) e.g. plain-old Groovy objects (POGOs) holding the related data e.g. a
- Tag Libraries (
LayoutTagLib) and tags (
def taskBrowser) to render the associated HTML (
views/layouts/components/_taskBrowser.gsp) to the page
allows for more maintainable and testable code.
Let’s put our money where our mouth is and see how one could test the used tag library. Continue reading “So If You’re Using Tag Libraries for Your View Models You Have To Test Them, Right?”