Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.0 final
-
Fix Version/s: 2.0.1
-
Component/s: Testing, View technologies
-
Labels:None
-
Testcase included:yes
Description
In a unit test that directly or indirectly calls g:render more than once the template used for the first call is used for all subsequent calls as well regardless of the template requested. The model passed to the render tag is handled correctly on each occasion.
Please see attached project that has a single unit test that demonstrates the problem.
Using a debugger shows that this is not caused by key collision in GroovyPagesTemplateRenderer.findAndCacheTemplate as I initially suspected.