liubao68 commented on a change in pull request #2600:
URL: 
https://github.com/apache/servicecomb-java-chassis/pull/2600#discussion_r724633147



##########
File path: 
demo/demo-jaxrs/jaxrs-client/src/main/java/org/apache/servicecomb/demo/jaxrs/client/validation/ValidationServiceClient.java
##########
@@ -81,5 +82,15 @@ private static void testValidation() {
       TestMgr.check(Status.BAD_REQUEST, e.getReasonPhrase());
       TestMgr.check(e.getErrorData().toString().contains("Parameter is not 
valid for operation"), true);
     }
+
+    try {
+      Teacher teacher = new Teacher();
+      teacher.setAge("20");
+      template.postForObject(urlPrefix + "/sayTeacherInfo", teacher, 
Teacher.class);

Review comment:
       add a check `TestMgr.fail` if this invocation is successful. Because if 
this test is successful, will not go to InvocationException logic. 




-- 
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