DescriptiveDictionaryController { @RequestMapping( value = {"/get_DescriptiveScope"}, method = {RequestMethod.GET}, produces = MediaType.APPLICATION_JSON_VALUE) public void getDescriptiveDictionaryEntityData(HttpServletResponse response) { DictionaryUtils utils = getDictionaryUtilsInstance(); utils.getData(response, descriptiveDatas, DescriptiveScope.class); } @Autowired  DescriptiveDictionaryController(CommonClassDao commonClassDao);  DescriptiveDictionaryController(); void setCommonClassDao(CommonClassDao commonClassDao); @RequestMapping( value = {"/get_DescriptiveScopeByName"}, method = {RequestMethod.GET}, produces = MediaType.APPLICATION_JSON_VALUE) void getDescriptiveDictionaryByNameEntityData(HttpServletResponse response); @RequestMapping( value = {"/get_DescriptiveScope"}, method = {RequestMethod.GET}, produces = MediaType.APPLICATION_JSON_VALUE) void getDescriptiveDictionaryEntityData(HttpServletResponse response); @RequestMapping(value = {"/descriptive_dictionary/save_descriptive"}, method = {RequestMethod.POST}) ModelAndView saveDescriptiveDictionary(HttpServletRequest request, HttpServletResponse response); @RequestMapping(value = {"/descriptive_dictionary/remove_descriptiveScope"}, method = {RequestMethod.POST}) void removeDescriptiveDictionary(HttpServletRequest request, HttpServletResponse response);  }
@Test public void testGetDescriptiveDictionaryEntityData() { when(commonClassDao.getData(DescriptiveScope.class)).thenReturn(testDescriptiveScope()); controller.getDescriptiveDictionaryEntityData(response); try { assertTrue(response.getContentAsString() != null && response.getContentAsString().contains("descriptiveScopeDictionaryDatas")); } catch (Exception e) { fail(); logger.error(e.getMessage(), e); } }