test_class.declarator: MOCK_REQUEST = new MockHttpServletRequest()
test_class.modifier: private static final
test_class.original_string: private static final MockHttpServletRequest MOCK_REQUEST = new MockHttpServletRequest();
test_class.type: MockHttpServletRequest
test_class.var_name: MOCK_REQUEST
test_class.declarator: handler
test_class.modifier: private
test_class.original_string: private MethodArgumentNotValidExceptionHandler handler;
test_class.type: MethodArgumentNotValidExceptionHandler
test_class.var_name: handler
test_class.file: neo-starter/src/test/java/eu/neoteric/starter/mvc/errorhandling/handlers/common/MethodArgumentNotValidExceptionHandlerTest.java
test_class.identifier: MethodArgumentNotValidExceptionHandlerTest
test_case.body: @Test
      public void errorMessage() throws Exception {
          //TODO
          BindingResult error = new BeanPropertyBindingResult("bean", "message");
          MethodArgumentNotValidException exception = new MethodArgumentNotValidException(null, error);
          Object o = handler.errorMessage(exception, MOCK_REQUEST);
      }
test_case.class_method_signature: MethodArgumentNotValidExceptionHandlerTest.errorMessage()
test_case.full_signature: @Test public void errorMessage()
test_case.identifier: errorMessage
test_case.invocations: errorMessage
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void errorMessage()
focal_class.declarator: VIOLATIONS = "violations"
focal_class.modifier: private static final
focal_class.original_string: private static final String VIOLATIONS = "violations";
focal_class.type: String
focal_class.var_name: VIOLATIONS
focal_class.file: neo-starter/src/main/java/eu/neoteric/starter/mvc/errorhandling/handlers/common/MethodArgumentNotValidExceptionHandler.java
focal_class.identifier: MethodArgumentNotValidExceptionHandler
focal_class.interfaces: implements RestExceptionHandler<MethodArgumentNotValidException>
focal_class.class_method_signature: MethodArgumentNotValidExceptionHandler.errorMessage(MethodArgumentNotValidException exception, HttpServletRequest request)
focal_class.full_signature: @Override public Object errorMessage(MethodArgumentNotValidException exception, HttpServletRequest request)
focal_class.identifier: errorMessage
focal_class.modifiers: @Override public
focal_class.parameters: (MethodArgumentNotValidException exception, HttpServletRequest request)
focal_class.return: Object
focal_class.signature: Object errorMessage(MethodArgumentNotValidException exception, HttpServletRequest request)
focal_class.class_method_signature: MethodArgumentNotValidExceptionHandler.additionalInfo(MethodArgumentNotValidException exception, HttpServletRequest request)
focal_class.full_signature: @Override public Map<String, Object> additionalInfo(MethodArgumentNotValidException exception, HttpServletRequest request)
focal_class.identifier: additionalInfo
focal_class.modifiers: @Override public
focal_class.parameters: (MethodArgumentNotValidException exception, HttpServletRequest request)
focal_class.return: Map<String, Object>
focal_class.signature: Map<String, Object> additionalInfo(MethodArgumentNotValidException exception, HttpServletRequest request)
focal_class.class_method_signature: MethodArgumentNotValidExceptionHandler.getType(ObjectError objectError)
focal_class.full_signature: private static String getType(ObjectError objectError)
focal_class.identifier: getType
focal_class.modifiers: private static
focal_class.parameters: (ObjectError objectError)
focal_class.return: String
focal_class.signature: String getType(ObjectError objectError)
focal_method.body: @Override
      public Object errorMessage(MethodArgumentNotValidException exception, HttpServletRequest request) {
          BindingResult bindingResult = exception.getBindingResult();
          int errorCount = bindingResult.getErrorCount();
  
          return String.join("", bindingResult.getObjectName(), " has ", String.valueOf(errorCount), " validation error",
                  errorCount > 1 ? "s" : "");
      }
focal_method.class_method_signature: MethodArgumentNotValidExceptionHandler.errorMessage(MethodArgumentNotValidException exception, HttpServletRequest request)
focal_method.full_signature: @Override public Object errorMessage(MethodArgumentNotValidException exception, HttpServletRequest request)
focal_method.identifier: errorMessage
focal_method.invocations: getBindingResult getErrorCount join getObjectName valueOf
focal_method.modifiers: @Override public
focal_method.parameters: (MethodArgumentNotValidException exception, HttpServletRequest request)
focal_method.return: Object
focal_method.signature: Object errorMessage(MethodArgumentNotValidException exception, HttpServletRequest request)