Details
Description
Generated testSave() and testUpdate() fail, apparently because 'save' action fails in generated controller when running in unit test.
1. Create new grails project in STS, with one new domain class (org.example. Thing)
2. Generate Controller for org.example.Thing
3. 'test-app' and get:
| Failure: testSave(org.example.ThingControllerTests) |
| Assertion failed: |
assert model.thingInstance != null
[:] null false
at org.example.ThingControllerTests.testSave(ThingControllerTests.groovy:47)
...
| Failure: testUpdate(org.example.ThingControllerTests) |
| Assertion failed: |
assert view == "/thing/edit"
null false
at org.example.ThingControllerTests.testUpdate(ThingControllerTests.groovy:124)
Activity
- All
- Comments
- Work Log
- History
- Activity
- Git Commits