Package org.springframework.web.servlet.handler

Examples of org.springframework.web.servlet.handler.HandlerMethodMappingNamingStrategy


    Method method = ClassUtils.getMethod(TestController.class, "handle");
    HandlerMethod handlerMethod = new HandlerMethod(new TestController(), method);

    RequestMappingInfo rmi = new RequestMappingInfo("foo", null, null, null, null, null, null, null);

    HandlerMethodMappingNamingStrategy strategy = new RequestMappingInfoHandlerMethodMappingNamingStrategy();

    assertEquals("foo", strategy.getName(handlerMethod, rmi));
  }
View Full Code Here


    Method method = ClassUtils.getMethod(TestController.class, "handle");
    HandlerMethod handlerMethod = new HandlerMethod(new TestController(), method);

    RequestMappingInfo rmi = new RequestMappingInfo(null, null, null, null, null, null, null, null);

    HandlerMethodMappingNamingStrategy strategy = new RequestMappingInfoHandlerMethodMappingNamingStrategy();

    assertEquals("TC#handle", strategy.getName(handlerMethod, rmi));
  }
View Full Code Here

TOP

Related Classes of org.springframework.web.servlet.handler.HandlerMethodMappingNamingStrategy

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.