I have set a Validator on a TextField using setValidator(). The input is validated fine when I run the application.
When writing unit tests against my GUI I set the validator on the TextField and then set the value to a invalid value. However when I call isValid() or validate() on the TextField it always returns true.
When calling the validator.validate on the TextField with its value, it returns false.
Am I misunderstanding the isValid() and validate() method on the TextField? Or do I need to fire some Event before the validation kicks in, in my test?