ActionPolicyDictionaryController { @RequestMapping( value = {"/get_ActionPolicyDictDataByName"}, method = {RequestMethod.GET}, produces = MediaType.APPLICATION_JSON_VALUE) public void getActionEntitybyName(HttpServletResponse response) { DictionaryUtils utils = getDictionaryUtilsInstance(); utils.getDataByEntity(response, actionDatas, attributeName, ActionPolicyDict.class); } @Autowired  ActionPolicyDictionaryController(CommonClassDao commonClassDao);  ActionPolicyDictionaryController(); void setCommonClassDao(CommonClassDao commonClassDao); @RequestMapping( value = {"/get_ActionPolicyDictDataByName"}, method = {RequestMethod.GET}, produces = MediaType.APPLICATION_JSON_VALUE) void getActionEntitybyName(HttpServletResponse response); @RequestMapping( value = {"/get_ActionPolicyDictData"}, method = {RequestMethod.GET}, produces = MediaType.APPLICATION_JSON_VALUE) void getActionPolicyDictionaryEntityData(HttpServletResponse response); @RequestMapping(value = {"/action_dictionary/save_ActionDict"}, method = {RequestMethod.POST}) ModelAndView saveActionPolicyDictionary(HttpServletRequest request, HttpServletResponse response); @RequestMapping(value = {"/action_dictionary/remove_actionPolicyDict"}, method = {RequestMethod.POST}) void removeActionPolicyDictionary(HttpServletRequest request, HttpServletResponse response);  }
@Test public void testGetActionEntitybyName() { controller.getActionEntitybyName(response); try { assertTrue(response.getContentAsString() != null && response.getContentAsString().contains("actionPolicyDictionaryDatas")); } catch (Exception e) { fail(); logger.error(e.getMessage(), e); } }