-
Notifications
You must be signed in to change notification settings - Fork 150
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JSR-303 Validation test failed after adding jcabi-aspects #233
Comments
Adding more details. I am able to use the jcabi-aspects library. Problem is in running the testNG unit tests. For some of unit tests I can see the logs with method execution time. For example below unit test:
In above code all objects starting with mock are mocked instance objects.
The issue is where I add Collections.emptyList() for method call. The method has validation for that parameter to be not null and minimum size 1. As these beans are not created with Spring, so I do not expect the validation should be triggered. Any idea how to stop the validation for unit tests with jcabi-aspects? |
Hi,
I am using jcabi-aspects to record the execution time of methods.
Based on some search I also added the hibernate-validator in the dependency:
Now after running "mvn clean install" I get below error:
This bean mtsoMessageServiceAdapter is returned from a static inner class written in the test class
Above mtsoMessagePersistenceService is a mocked object:
The text was updated successfully, but these errors were encountered: