@Test public void testRemoveBRMSDependencyDictionary() { logger.info("testRemoveBRMSDependencyDictionary: Entering"); MockHttpServletResponse response = new MockHttpServletResponse(); request = mock(HttpServletRequest.class); jsonString = "{\"data\": {\"ruleName\": \"test\",\"rule\": \"test\"}}"; try (BufferedReader br = new BufferedReader(new StringReader(jsonString))) { when(request.getReader()).thenReturn(br); controller.removeBRMSDependencyDictionary(request, response); logger.info("response.getContentAsString(): " + response.getContentAsString()); assertTrue(response.getContentAsString() != null && response.getContentAsString().contains("brmsDependencyDictionaryDatas")); } catch (Exception e) { fail("Exception: " + e); } logger.info("testRemoveBRMSDependencyDictionary: exit"); }
@RequestMapping(value = {"/brms_dictionary/remove_brmsDependency"}, method = {RequestMethod.POST}) public void removeBRMSDependencyDictionary(HttpServletRequest request, HttpServletResponse response) throws IOException { DictionaryUtils utils = getDictionaryUtilsInstance(); utils.removeData(request, response, brmsDependencyDatas, BrmsDependency.class); }
BRMSDictionaryController { @RequestMapping(value = {"/brms_dictionary/remove_brmsDependency"}, method = {RequestMethod.POST}) public void removeBRMSDependencyDictionary(HttpServletRequest request, HttpServletResponse response) throws IOException { DictionaryUtils utils = getDictionaryUtilsInstance(); utils.removeData(request, response, brmsDependencyDatas, BrmsDependency.class); } }
BRMSDictionaryController { @RequestMapping(value = {"/brms_dictionary/remove_brmsDependency"}, method = {RequestMethod.POST}) public void removeBRMSDependencyDictionary(HttpServletRequest request, HttpServletResponse response) throws IOException { DictionaryUtils utils = getDictionaryUtilsInstance(); utils.removeData(request, response, brmsDependencyDatas, BrmsDependency.class); } @Autowired  BRMSDictionaryController(CommonClassDao commonClassDao);  BRMSDictionaryController(); }
BRMSDictionaryController { @RequestMapping(value = {"/brms_dictionary/remove_brmsDependency"}, method = {RequestMethod.POST}) public void removeBRMSDependencyDictionary(HttpServletRequest request, HttpServletResponse response) throws IOException { DictionaryUtils utils = getDictionaryUtilsInstance(); utils.removeData(request, response, brmsDependencyDatas, BrmsDependency.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); }
BRMSDictionaryController { @RequestMapping(value = {"/brms_dictionary/remove_brmsDependency"}, method = {RequestMethod.POST}) public void removeBRMSDependencyDictionary(HttpServletRequest request, HttpServletResponse response) throws IOException { DictionaryUtils utils = getDictionaryUtilsInstance(); utils.removeData(request, response, brmsDependencyDatas, BrmsDependency.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);  }