@Test public void testFindWidgetWithAccessCode() { List<String> accessCodes = Arrays.asList("ACCESS_CODE_1", "ACCESS_CODE_2", "ACCESS_CODE_3"); when(widgetDao.findWidgetWithAccessCode(accessCodes)).thenReturn(getSampleWidgets()); List<Widget> actual = widgetService.findWidgetWithAccessCode(accessCodes); verify(widgetDao).findWidgetWithAccessCode(accessCodes); assertEquals(getSampleWidgets(), actual); }
@Override public List<Widget> findWidgetWithAccessCode(List<String> accessCodes) { return ((WidgetDao) getDao()).findWidgetWithAccessCode(accessCodes); }
WidgetServiceImpl extends BaseCrudServiceImpl<Widget> implements
		WidgetService { @Override public List<Widget> findWidgetWithAccessCode(List<String> accessCodes) { return ((WidgetDao) getDao()).findWidgetWithAccessCode(accessCodes); } }
WidgetServiceImpl extends BaseCrudServiceImpl<Widget> implements
		WidgetService { @Override public List<Widget> findWidgetWithAccessCode(List<String> accessCodes) { return ((WidgetDao) getDao()).findWidgetWithAccessCode(accessCodes); }  }
WidgetServiceImpl extends BaseCrudServiceImpl<Widget> implements
		WidgetService { @Override public List<Widget> findWidgetWithAccessCode(List<String> accessCodes) { return ((WidgetDao) getDao()).findWidgetWithAccessCode(accessCodes); }  @Override Widget findByName(String name); @Override Widget findByUrl(String url); @Override List<Widget> getCurrentUserWidgets(); @Override Widget requestWidget(String widgetUrl, String name,
			HttpServletRequest req); @Override int getColumnConfig(); @Override List<Widget> findDefaultWidget(BaseUser user); @Override List<Widget> findWidgetWithAccessCode(List<String> accessCodes); void setIPAddress(String iPAddress); String getWidgetColumn(); void setWidgetColumn(String widgetColumn); }
WidgetServiceImpl extends BaseCrudServiceImpl<Widget> implements
		WidgetService { @Override public List<Widget> findWidgetWithAccessCode(List<String> accessCodes) { return ((WidgetDao) getDao()).findWidgetWithAccessCode(accessCodes); }  @Override Widget findByName(String name); @Override Widget findByUrl(String url); @Override List<Widget> getCurrentUserWidgets(); @Override Widget requestWidget(String widgetUrl, String name,
			HttpServletRequest req); @Override int getColumnConfig(); @Override List<Widget> findDefaultWidget(BaseUser user); @Override List<Widget> findWidgetWithAccessCode(List<String> accessCodes); void setIPAddress(String iPAddress); String getWidgetColumn(); void setWidgetColumn(String widgetColumn);  }