@Test public void buildSofaErrorResponse() throws Exception { SofaResponse response = MessageBuilder.buildSofaErrorResponse("xxx"); Assert.assertTrue(response.isError()); Assert.assertEquals("xxx", response.getErrorMsg()); }
public static SofaResponse buildSofaErrorResponse(String errorMsg) { SofaResponse sofaResponse = new SofaResponse(); sofaResponse.setErrorMsg(errorMsg); return sofaResponse; }
MessageBuilder { public static SofaResponse buildSofaErrorResponse(String errorMsg) { SofaResponse sofaResponse = new SofaResponse(); sofaResponse.setErrorMsg(errorMsg); return sofaResponse; } }
MessageBuilder { public static SofaResponse buildSofaErrorResponse(String errorMsg) { SofaResponse sofaResponse = new SofaResponse(); sofaResponse.setErrorMsg(errorMsg); return sofaResponse; }  }
MessageBuilder { public static SofaResponse buildSofaErrorResponse(String errorMsg) { SofaResponse sofaResponse = new SofaResponse(); sofaResponse.setErrorMsg(errorMsg); return sofaResponse; }  @Deprecated static SofaRequest buildSofaRequest(Class<?> clazz, String method, Class[] argTypes, Object[] args); static SofaRequest buildSofaRequest(Class<?> clazz, Method method, Class[] argTypes, Object[] args); static SofaResponse buildSofaErrorResponse(String errorMsg); }
MessageBuilder { public static SofaResponse buildSofaErrorResponse(String errorMsg) { SofaResponse sofaResponse = new SofaResponse(); sofaResponse.setErrorMsg(errorMsg); return sofaResponse; }  @Deprecated static SofaRequest buildSofaRequest(Class<?> clazz, String method, Class[] argTypes, Object[] args); static SofaRequest buildSofaRequest(Class<?> clazz, Method method, Class[] argTypes, Object[] args); static SofaResponse buildSofaErrorResponse(String errorMsg);  }