hprange / wounit

The WOUnit framework contains a set of utilities for testing WebObjects applications using JUnit 4.7 or later capabilities.
http://hprange.github.io/wounit/
Apache License 2.0
19 stars 18 forks source link

Invoke validateForInsert method on canBeSaved matcher #50

Closed hprange closed 6 years ago

hprange commented 6 years ago

EOF invokes the validationForInsert method when saving new objects and validationForUpdate when saving existing ones. After this fix, the canBeSaved matcher will invoke the correct validation method according to the state of the object being validated. (closes #47)