BRMSDictionaryController { @RequestMapping( value = {"/get_BRMSControllerDataByName"}, method = {RequestMethod.GET}, produces = MediaType.APPLICATION_JSON_VALUE) public void getBRMSControllerDictionaryByNameEntityData(HttpServletResponse response) { DictionaryUtils utils = getDictionaryUtilsInstance(); utils.getDataByEntity(response, brmsControllerDatas, controllerName, BrmsController.class); } @Autowired  BRMSDictionaryController(CommonClassDao commonClassDao);  BRMSDictionaryController(); static void setCommonClassDao(CommonClassDao commonClassDao2); @RequestMapping( value = {"/get_BRMSParamDataByName"}, method = {RequestMethod.GET}, produces = MediaType.APPLICATION_JSON_VALUE) void getBRMSParamDictionaryByNameEntityData(HttpServletResponse response); @RequestMapping( value = {"/get_BRMSParamData"}, method = {RequestMethod.GET}, produces = MediaType.APPLICATION_JSON_VALUE) void getBRMSParamDictionaryEntityData(HttpServletResponse response); @RequestMapping(value = {"/brms_dictionary/set_BRMSParamData"}, method = {RequestMethod.POST}) static void setRuleData(HttpServletRequest request); @RequestMapping(value = {"/brms_dictionary/save_BRMSParam"}, method = {RequestMethod.POST}) ModelAndView saveBRMSParamDictionary(HttpServletRequest request, HttpServletResponse response); @RequestMapping(value = {"/brms_dictionary/remove_brmsParam"}, method = {RequestMethod.POST}) void removeBRMSParamDictionary(HttpServletRequest request, HttpServletResponse response); @RequestMapping( value = {"/get_BRMSDependencyDataByName"}, method = {RequestMethod.GET}, produces = MediaType.APPLICATION_JSON_VALUE) void getBRMSDependencyDictionaryByNameEntityData(HttpServletResponse response); @RequestMapping( value = {"/get_BRMSDependencyData"}, method = {RequestMethod.GET}, produces = MediaType.APPLICATION_JSON_VALUE) void getBRMSDependencyDictionaryEntityData(HttpServletResponse response); @RequestMapping(value = {"/brms_dictionary/save_BRMSDependencyData"}, method = {RequestMethod.POST}) ModelAndView saveBRMSDependencyDictionary(HttpServletRequest request, HttpServletResponse response); @RequestMapping(value = {"/brms_dictionary/remove_brmsDependency"}, method = {RequestMethod.POST}) void removeBRMSDependencyDictionary(HttpServletRequest request, HttpServletResponse response); @RequestMapping( value = {"/get_BRMSControllerDataByName"}, method = {RequestMethod.GET}, produces = MediaType.APPLICATION_JSON_VALUE) void getBRMSControllerDictionaryByNameEntityData(HttpServletResponse response); @RequestMapping( value = {"/get_BRMSControllerData"}, method = {RequestMethod.GET}, produces = MediaType.APPLICATION_JSON_VALUE) void getBRMSControllerDictionaryEntityData(HttpServletResponse response); @RequestMapping(value = {"/brms_dictionary/save_BRMSControllerData"}, method = {RequestMethod.POST}) ModelAndView saveBRMSControllerDictionary(HttpServletRequest request, HttpServletResponse response); @RequestMapping(value = {"/brms_dictionary/remove_brmsController"}, method = {RequestMethod.POST}) void removeBRMSControllerDictionary(HttpServletRequest request, HttpServletResponse response); BrmsDependency getDependencyDataByID(String dependencyName); BrmsController getControllerDataByID(String controllerName);  }
@Test public void testGetBRMSControllerDictionaryByNameEntityData() { logger.info("testGetBRMSControllerDictionaryByNameEntityData: Entering"); MockHttpServletResponse response = new MockHttpServletResponse(); BRMSDictionaryController.setCommonClassDao(commonClassDao); controller.getBRMSControllerDictionaryByNameEntityData(response); try { assertTrue(response.getContentAsString() != null && response.getContentAsString().contains("brmsControllerDictionaryDatas")); logger.info("response.getContentAsString(): " + response.getContentAsString()); } catch (UnsupportedEncodingException e) { fail("Exception: " + e); } logger.info("testGetBRMSControllerDictionaryByNameEntityData: exit"); }