DictionaryController { @RequestMapping( value = "/get_AttributeData", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE) public void getAttributeDictionaryEntityData(HttpServletResponse response) { DictionaryUtils utils = getDictionaryUtilsInstance(); utils.getData(response, attributeDatas, Attribute.class); } @Autowired  DictionaryController(CommonClassDao commonClassDao);  DictionaryController(); @RequestMapping( value = {"/get_AttributeDatabyAttributeName"}, method = {RequestMethod.GET}, produces = MediaType.APPLICATION_JSON_VALUE) void getAttributeDictionaryEntityDatabyAttributeName(HttpServletResponse response); @RequestMapping( value = "/get_AttributeData", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE) void getAttributeDictionaryEntityData(HttpServletResponse response); @RequestMapping(value = {"/attribute_dictionary/save_attribute"}, method = {RequestMethod.POST}) ModelAndView saveAttributeDictionary(HttpServletRequest request, HttpServletResponse response); @RequestMapping(value = {"/attribute_dictionary/remove_attribute"}, method = {RequestMethod.POST}) void removeAttributeDictionary(HttpServletRequest request, HttpServletResponse response); @RequestMapping( value = {"/get_OnapNameDataByName"}, method = {RequestMethod.GET}, produces = MediaType.APPLICATION_JSON_VALUE) void getOnapNameDictionaryByNameEntityData(HttpServletResponse response); @RequestMapping( value = {"/get_OnapNameData"}, method = {RequestMethod.GET}, produces = MediaType.APPLICATION_JSON_VALUE) void getOnapNameDictionaryEntityData(HttpServletResponse response); @RequestMapping(value = {"/onap_dictionary/save_onapName"}, method = {RequestMethod.POST}) ModelAndView saveOnapDictionary(HttpServletRequest request, HttpServletResponse response); @RequestMapping(value = {"/onap_dictionary/remove_onap"}, method = {RequestMethod.POST}) void removeOnapDictionary(HttpServletRequest request, HttpServletResponse response);  }
@Test public void testGetAttributeDictionaryEntityData() { logger.info("testGetAttributeDictionaryEntityData: Entering"); MockHttpServletResponse response = new MockHttpServletResponse(); controller.getAttributeDictionaryEntityData(response); try { assertTrue(response.getContentAsString() != null && response.getContentAsString().contains("attributeDictionaryDatas")); logger.info("response.getContentAsString(): " + response.getContentAsString()); } catch (UnsupportedEncodingException e) { fail("Exception: " + e); } logger.info("testGetAttributeDictionaryEntityData: exit"); }