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 e1671b4b3fed64cd5bb9c98444bea2eecaa26a14
Author: liubao <bao....@huawei.com>
AuthorDate: Fri Aug 10 10:27:02 2018 +0800

    [SCB-828]test missed
---
 .../java/org/apache/servicecomb/common/rest/codec/TestRestCodec.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/common/common-rest/src/test/java/org/apache/servicecomb/common/rest/codec/TestRestCodec.java
 
b/common/common-rest/src/test/java/org/apache/servicecomb/common/rest/codec/TestRestCodec.java
index ce6489b..90245d7 100644
--- 
a/common/common-rest/src/test/java/org/apache/servicecomb/common/rest/codec/TestRestCodec.java
+++ 
b/common/common-rest/src/test/java/org/apache/servicecomb/common/rest/codec/TestRestCodec.java
@@ -134,7 +134,7 @@ public class TestRestCodec {
       success = true;
     } catch (InvocationException e) {
       Assert.assertEquals(400, e.getStatusCode());
-      Assert.assertEquals("Parameter is not valid.", e.getErrorData());
+      Assert.assertEquals("Parameter is not valid.", ((CommonExceptionData) 
e.getErrorData()).getMessage());
     }
     Assert.assertEquals(success, false);
   }

Reply via email to