ViewController implements ViewConstants { @RequestMapping(method = { RequestMethod.GET }, value = "/simplified") public ModelAndView stbSimplifiedView(@RequestParam String deviceId, @RequestParam(required=false) String mobile, @RequestParam(required = false) String remoteType, @RequestParam(required = false) String refresh, @RequestHeader("User-Agent") String uaStr, HttpServletRequest req, HttpServletResponse resp) { String stbViewType = SIMPLIFIED; return getStbView(req, resp, deviceId, mobile, remoteType, refresh, uaStr, stbViewType); }  @RequestMapping(value = "/login", method = RequestMethod.GET) ModelAndView login(
        @RequestParam(value = "error", required = false) String error,
        @RequestParam(value = "logout", required = false) String logout,
        @RequestParam(value = "unauthorized", required = false) String unauthorized); @RequestMapping(method = { RequestMethod.GET }, value = "/stb") ModelAndView stbView(@RequestParam String deviceId, @RequestParam(required=false) String mobile,
            @RequestParam(required = false) String remoteType,
            @RequestParam(required = false) String refresh,
            @RequestHeader("User-Agent") String uaStr,
            HttpServletRequest req, HttpServletResponse resp); @RequestMapping(method = { RequestMethod.GET }, value = "/simplified") ModelAndView stbSimplifiedView(@RequestParam String deviceId, @RequestParam(required=false) String mobile,
            @RequestParam(required = false) String remoteType,
            @RequestParam(required = false) String refresh,
            @RequestHeader("User-Agent") String uaStr,
            HttpServletRequest req, HttpServletResponse resp); ModelAndView getStbView(HttpServletRequest req, HttpServletResponse resp, String deviceId, 
            String mobile, String remoteType, String refresh, String uaStr, String stbViewType); @RequestMapping(method = { RequestMethod.POST, RequestMethod.GET }, value = {"/stb/refreshCache", "/simplified/refreshCache"}) @ResponseBody void refreshStbCache(@RequestParam String deviceIds[]); @RequestMapping(method = {RequestMethod.POST, RequestMethod.GET}, value = "/remotetypes", produces = "application/json; charset=utf-8") @ResponseBody Set<String> getValidRemoteTypes(); @RequestMapping(method = {RequestMethod.GET}, value = "/multi") ModelAndView multiView(@RequestParam String[] deviceIds, @RequestParam(required = false) String refresh,
            @RequestParam(required = false, defaultValue = "false") boolean isGenericRemote,
            @RequestHeader("User-Agent") String uaStr,
            HttpServletRequest req, HttpServletResponse resp); @RequestMapping(method = {RequestMethod.GET}, value = "/video/multi/snap") @ResponseBody ModelAndView snapMultiVideo(@RequestParam String[] deviceIds, HttpSession session,
            HttpServletRequest req, HttpServletResponse resp); @RequestMapping(method = {RequestMethod.GET}, value = "/snap/multi", produces = "application/zip") ModelAndView multiSnap(@RequestParam Map<String, String> deviceIdImageIdMap,
            @RequestParam(required = false) String refresh, HttpServletResponse response, HttpServletRequest req, HttpSession session); static final Logger LOGGER; }
@Test(dataProvider="testStbSimplifiedViewData") public void testStbECPView(String remoteType, String actualRemote, String mobileParam, String ua, boolean isMobile, String traceUrl, boolean traceAvailable) throws IOException { MetaStb stb = TestUtils.createGenericMetaStb(); stb.setRemoteType(remoteType); stb.setSerialHost(traceUrl); MockMetaStbCache cache = new MockMetaStbCache(); cache.cache.put(TestUtils.ID, stb); ViewController controller = getViewController(cache); ModelAndView mav = controller.stbSimplifiedView(TestUtils.ID, mobileParam, null, null, ua, null, null); Assert.assertEquals(mav.getModel().get(ViewConstants.MOBILE), isMobile); Assert.assertEquals(mav.getModel().get(ViewConstants.TRACE_AVAILABLE), traceAvailable); Remote remote = (Remote) mav.getModel().get(ViewConstants.REMOTE); Assert.assertEquals(remote.getName(), actualRemote); }