@Test public void findSettopListByHostMac() throws SettopNotFoundException { List<String> macIdList = new ArrayList<String>(); macIdList.add(MAC_ID); List<Settop> settops = settopFactory.findSettopByHostMac(macIdList); assertNotNull(settops); }
@Test public void findSettopByHostMac() throws SettopNotFoundException { Settop settop = settopFactory.findSettopByHostMac(MAC_ID); assertNotNull(settop); assertNotNull("RemoteProvider should not be null", settop.getRemote()); assertNotNull("PowerProvider should not be null", settop.getPower()); assertNotNull("VideoProvider should not be null", settop.getVideo()); assertNotNull("ImageCompareProvider should not be null", settop.getImageCompareProvider()); LOGGER.info(settop); }
@Test(expected = IllegalArgumentException.class) public void findSettopListByHostMacEmptyList() throws SettopNotFoundException { @SuppressWarnings("unchecked") List<String> macIdList = Collections.EMPTY_LIST; settopFactory.findSettopByHostMac(macIdList); }
@Test(expected = IllegalArgumentException.class) public void findSettopListByHostMacEmpty() throws SettopNotFoundException { List<String> macIdList = new ArrayList<String>(); settopFactory.findSettopByHostMac(macIdList); }
@Test(expected = SettopNotFoundException.class) public void findSettopByHostMacInvalid() throws SettopNotFoundException { settopFactory.findSettopByHostMac(INVALID_MAC_ID_FORMAT); }
@Test(expected = IllegalArgumentException.class) public void findSettopByHostMacEmpty() throws SettopNotFoundException { String macId = null; settopFactory.findSettopByHostMac(macId); }
@Test(expected = SettopNotFoundException.class) public void findSettopListByHostMacInvalid() throws SettopNotFoundException { List<String> macIdList = new ArrayList<String>(); macIdList.add(INVALID_MAC_ID_FORMAT); settopFactory.findSettopByHostMac(macIdList); }