reckart opened a new issue, #209:
URL: https://github.com/apache/uima-uimafit/issues/209

   **Is your feature request related to a problem? Please describe.**
   It is possible to set a specific validator on a managed CAS when the managed 
CAS is created:
   
   ```
        private @RegisterExtension ManagedJCas jcas = new 
ManagedJCas().withValidator(
                        new 
Validator.Builder().excludingByType(SentenceRelatedCheck.class).build());
   ```
   
   But if I need a different validator just in a particular test method and I 
call `withValidator()` again, it changes the validator for all subsequent 
tests. 
   
   **Describe the solution you'd like**
   It should be possible to set a default validator for an entire test class. 
It should be possible in a particular test to override it - but only for that 
test. Maybe have two methods:
   
   * `withValidator()` to be used to set the validator for a particular test
   * `withDefaultValidator()` to be used for setting the default validator - 
after a test this validator is always restored
   
   **Describe alternatives you've considered**
   Not sure.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to