ClosedLoopDictionaryController { @RequestMapping( value = {"/get_ClosedLoopServicesDataByName"}, method = {RequestMethod.GET}, produces = MediaType.APPLICATION_JSON_VALUE) public void getClosedLoopServiceDictionaryByNameEntityData(HttpServletResponse response) { DictionaryUtils utils = getDictionaryUtilsInstance(); utils.getDataByEntity(response, closedLoopDatas, serviceName, ClosedLoopD2Services.class); } @Autowired  ClosedLoopDictionaryController(CommonClassDao commonClassDao);  ClosedLoopDictionaryController(); void setCommonClassDao(CommonClassDao commonClassDao); static void setCommonClassDao(CommonClassDaoImpl commonClassDaoImpl); @RequestMapping( value = {"/get_VSCLActionDataByName"}, method = {RequestMethod.GET}, produces = MediaType.APPLICATION_JSON_VALUE) void getVSCLActionDictionaryByNameEntityData(HttpServletResponse response); @RequestMapping( value = {"/get_VSCLActionData"}, method = {RequestMethod.GET}, produces = MediaType.APPLICATION_JSON_VALUE) void getVSCLActionDictionaryEntityData(HttpServletResponse response); @RequestMapping( value = {"/get_VNFTypeDataByName"}, method = {RequestMethod.GET}, produces = MediaType.APPLICATION_JSON_VALUE) void getVNFTypeDictionaryByNameEntityData(HttpServletResponse response); @RequestMapping( value = {"/get_VNFTypeData"}, method = {RequestMethod.GET}, produces = MediaType.APPLICATION_JSON_VALUE) void getVNFTypeDictionaryEntityData(HttpServletResponse response); @RequestMapping( value = {"/get_PEPOptionsDataByName"}, method = {RequestMethod.GET}, produces = MediaType.APPLICATION_JSON_VALUE) void getPEPOptionsDictionaryByNameEntityData(HttpServletResponse response); @RequestMapping( value = {"/get_PEPOptionsData"}, method = {RequestMethod.GET}, produces = MediaType.APPLICATION_JSON_VALUE) void getPEPOptionsDictionaryEntityData(HttpServletResponse response); @RequestMapping( value = {"/get_VarbindDictionaryDataByName"}, method = {RequestMethod.GET}, produces = MediaType.APPLICATION_JSON_VALUE) void getVarbindDictionaryByNameEntityData(HttpServletResponse response); @RequestMapping( value = {"/get_VarbindDictionaryData"}, method = {RequestMethod.GET}, produces = MediaType.APPLICATION_JSON_VALUE) void getVarbindDictionaryEntityData(HttpServletResponse response); @RequestMapping( value = {"/get_ClosedLoopServicesDataByName"}, method = {RequestMethod.GET}, produces = MediaType.APPLICATION_JSON_VALUE) void getClosedLoopServiceDictionaryByNameEntityData(HttpServletResponse response); @RequestMapping( value = {"/get_ClosedLoopServicesData"}, method = {RequestMethod.GET}, produces = MediaType.APPLICATION_JSON_VALUE) void getClosedLoopServiceDictionaryEntityData(HttpServletResponse response); @RequestMapping( value = {"/get_ClosedLoopSiteDataByName"}, method = {RequestMethod.GET}, produces = MediaType.APPLICATION_JSON_VALUE) void getClosedLoopSiteDictionaryByNameEntityData(HttpServletResponse response); @RequestMapping( value = {"/get_ClosedLoopSiteData"}, method = {RequestMethod.GET}, produces = MediaType.APPLICATION_JSON_VALUE) void getClosedLoopSiteDictionaryEntityData(HttpServletResponse response); @RequestMapping(value = {"/cl_dictionary/save_vsclAction"}, method = {RequestMethod.POST}) ModelAndView saveVSCLAction(HttpServletRequest request, HttpServletResponse response); @RequestMapping(value = {"/cl_dictionary/remove_VsclAction"}, method = {RequestMethod.POST}) void removeVSCLAction(HttpServletRequest request, HttpServletResponse response); @RequestMapping(value = {"/cl_dictionary/save_vnfType"}, method = {RequestMethod.POST}) ModelAndView saveVnfType(HttpServletRequest request, HttpServletResponse response); @RequestMapping(value = {"/cl_dictionary/remove_vnfType"}, method = {RequestMethod.POST}) void removeVnfType(HttpServletRequest request, HttpServletResponse response); @RequestMapping(value = {"/cl_dictionary/save_pepOptions"}, method = {RequestMethod.POST}) ModelAndView savePEPOptions(HttpServletRequest request, HttpServletResponse response); @RequestMapping(value = {"/cl_dictionary/remove_pepOptions"}, method = {RequestMethod.POST}) void removePEPOptions(HttpServletRequest request, HttpServletResponse response); @RequestMapping(value = {"/cl_dictionary/save_service"}, method = {RequestMethod.POST}) ModelAndView saveServiceType(HttpServletRequest request, HttpServletResponse response); @RequestMapping(value = {"/cl_dictionary/remove_Service"}, method = {RequestMethod.POST}) void removeServiceType(HttpServletRequest request, HttpServletResponse response); @RequestMapping(value = {"/cl_dictionary/save_siteName"}, method = {RequestMethod.POST}) ModelAndView saveSiteType(HttpServletRequest request, HttpServletResponse response); @RequestMapping(value = {"/cl_dictionary/remove_site"}, method = {RequestMethod.POST}) void removeSiteType(HttpServletRequest request, HttpServletResponse response); @RequestMapping(value = {"/cl_dictionary/save_varbind"}, method = {RequestMethod.POST}) ModelAndView saveVarbind(HttpServletRequest request, HttpServletResponse response); @RequestMapping(value = {"/cl_dictionary/remove_varbindDict"}, method = {RequestMethod.POST}) void removeVarbind(HttpServletRequest request, HttpServletResponse response);  }
@Test public void testGetClosedLoopServiceDictionaryByNameEntityData() { when(commonClassDao.getDataByColumn(ClosedLoopD2Services.class, "serviceName")).thenReturn(data); controller.getClosedLoopServiceDictionaryByNameEntityData(response); try { assertTrue(response.getContentAsString() != null && response.getContentAsString().contains("closedLoopServiceDictionaryDatas")); } catch (Exception e) { fail(); logger.error(e.getMessage(), e); } }