This is an automated email from the ASF dual-hosted git repository.

liubao pushed a commit to branch master
in repository 
https://gitbox.apache.org/repos/asf/incubator-servicecomb-java-chassis.git

commit 35941661f5f17d823ddf82f7673e1f7ff3b30f8d
Author: acsukesh <sukes...@huawei.com>
AuthorDate: Fri Apr 13 14:34:00 2018 +0530

    [SCB-292] chassis support standard parameter validation
---
 .../java/org/apache/servicecomb/demo/jaxrs/client/JaxrsClient.java | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git 
a/demo/demo-jaxrs/jaxrs-client/src/main/java/org/apache/servicecomb/demo/jaxrs/client/JaxrsClient.java
 
b/demo/demo-jaxrs/jaxrs-client/src/main/java/org/apache/servicecomb/demo/jaxrs/client/JaxrsClient.java
index 680e6ad..ba82bd1 100644
--- 
a/demo/demo-jaxrs/jaxrs-client/src/main/java/org/apache/servicecomb/demo/jaxrs/client/JaxrsClient.java
+++ 
b/demo/demo-jaxrs/jaxrs-client/src/main/java/org/apache/servicecomb/demo/jaxrs/client/JaxrsClient.java
@@ -21,6 +21,7 @@ import java.util.HashMap;
 import java.util.Map;
 
 import javax.ws.rs.core.MediaType;
+import javax.ws.rs.core.Response.Status;
 
 import org.apache.servicecomb.common.rest.codec.RestObjectMapper;
 import org.apache.servicecomb.core.CseContext;
@@ -179,6 +180,8 @@ public class JaxrsClient {
     } catch (InvocationException e) {
       isExcep = true;
       TestMgr.check(400, e.getStatus().getStatusCode());
+      TestMgr.check(Status.BAD_REQUEST, e.getReasonPhrase());
+      TestMgr.check(true, 
e.getErrorData().toString().contains("ConstraintViolationImpl"));
     }
 
     TestMgr.check(true, isExcep);
@@ -199,6 +202,8 @@ public class JaxrsClient {
     } catch (InvocationException e) {
       isExcep = true;
       TestMgr.check(400, e.getStatus().getStatusCode());
+      TestMgr.check(Status.BAD_REQUEST, e.getReasonPhrase());
+      TestMgr.check(true, 
e.getErrorData().toString().contains("ConstraintViolationImpl"));
     }
     TestMgr.check(true, isExcep);
   }
@@ -226,6 +231,8 @@ public class JaxrsClient {
     } catch (InvocationException e) {
       isExcep = true;
       TestMgr.check(400, e.getStatus().getStatusCode());
+      TestMgr.check(Status.BAD_REQUEST, e.getReasonPhrase());
+      TestMgr.check(true, 
e.getErrorData().toString().contains("ConstraintViolationImpl"));
     }
     TestMgr.check(true, isExcep);
   }

-- 
To stop receiving notification emails like this one, please contact
liu...@apache.org.

Reply via email to