Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Not A Bug
-
Affects Version/s: 1.3.2
-
Fix Version/s: 1.3.4
-
Component/s: None
-
Labels:None
-
Environment:Windows 7
Description
In a controller unit test with controller.modelAndView.view no longer appears to be set.
In a controller that simply returns a view:
ModelAndViewController.groovy
class ModelAndViewController {
def testAction = {
render( view: 'testAction' )
}
}
And has either a unit test or integration test:
ModelAndViewControllerTest.groovy
void testMultipleUserSelect() {
controller.testAction()
assertEquals 'testAction', controller.modelAndView.view
}
The test works in 1.2 but fails in 1.3.2 because controller.modelAndView.view returns null.
Same problem here, but I use modelAndView.viewName. Either way, its not being set and my tests fail as a result.