test_class.declarator: ERROR_MESSAGE = "error message."
test_class.modifier: public static final
test_class.original_string: public static final String ERROR_MESSAGE = "error message.";
test_class.type: String
test_class.var_name: ERROR_MESSAGE
test_class.file: shardingsphere-scaling/shardingsphere-scaling-bootstrap/src/test/java/org/apache/shardingsphere/scaling/utils/ResponseContentUtilTest.java
test_class.identifier: ResponseContentUtilTest
test_case.body: @Test
      public void assertHandleException() {
          ResponseContent<?> responseContent = ResponseContentUtil.handleException(ERROR_MESSAGE);
          assertThat(responseContent.getErrorMsg(), is(ERROR_MESSAGE));
          assertThat(responseContent.getErrorCode(), is(ResponseCode.SERVER_ERROR));
          assertNull(responseContent.getModel());
      }
test_case.class_method_signature: ResponseContentUtilTest.assertHandleException()
test_case.full_signature: @Test public void assertHandleException()
test_case.identifier: assertHandleException
test_case.invocations: handleException assertThat getErrorMsg is assertThat getErrorCode is assertNull getModel
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void assertHandleException()
focal_class.file: shardingsphere-scaling/shardingsphere-scaling-bootstrap/src/main/java/org/apache/shardingsphere/scaling/utils/ResponseContentUtil.java
focal_class.identifier: ResponseContentUtil
focal_class.class_method_signature: ResponseContentUtil.success()
focal_class.full_signature: public static ResponseContent<?> success()
focal_class.identifier: success
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: ResponseContent<?>
focal_class.signature: ResponseContent<?> success()
focal_class.class_method_signature: ResponseContentUtil.build(final T model)
focal_class.full_signature: public static ResponseContent<T> build(final T model)
focal_class.identifier: build
focal_class.modifiers: public static
focal_class.parameters: (final T model)
focal_class.return: ResponseContent<T>
focal_class.signature: ResponseContent<T> build(final T model)
focal_class.class_method_signature: ResponseContentUtil.handleBadRequest(final String errorMsg)
focal_class.full_signature: public static ResponseContent<?> handleBadRequest(final String errorMsg)
focal_class.identifier: handleBadRequest
focal_class.modifiers: public static
focal_class.parameters: (final String errorMsg)
focal_class.return: ResponseContent<?>
focal_class.signature: ResponseContent<?> handleBadRequest(final String errorMsg)
focal_class.class_method_signature: ResponseContentUtil.handleException(final String errorMsg)
focal_class.full_signature: public static ResponseContent<?> handleException(final String errorMsg)
focal_class.identifier: handleException
focal_class.modifiers: public static
focal_class.parameters: (final String errorMsg)
focal_class.return: ResponseContent<?>
focal_class.signature: ResponseContent<?> handleException(final String errorMsg)
focal_method.body: public static ResponseContent<?> handleException(final String errorMsg) {
          ResponseContent<?> result = new ResponseContent<>();
          result.setSuccess(false);
          result.setErrorCode(ResponseCode.SERVER_ERROR);
          result.setErrorMsg(errorMsg);
          return result;
      }
focal_method.class_method_signature: ResponseContentUtil.handleException(final String errorMsg)
focal_method.full_signature: public static ResponseContent<?> handleException(final String errorMsg)
focal_method.identifier: handleException
focal_method.invocations: setSuccess setErrorCode setErrorMsg
focal_method.modifiers: public static
focal_method.parameters: (final String errorMsg)
focal_method.return: ResponseContent<?>
focal_method.signature: ResponseContent<?> handleException(final String errorMsg)