Example #1
0
 @Test
 public void findSettopListByHostMac() throws SettopNotFoundException {
   List<String> macIdList = new ArrayList<String>();
   macIdList.add(MAC_ID);
   List<Settop> settops = settopFactory.findSettopByHostMac(macIdList);
   assertNotNull(settops);
 }
Example #2
0
 @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);
 }
Example #3
0
 @Test(expected = IllegalArgumentException.class)
 public void findSettopListByHostMacEmptyList() throws SettopNotFoundException {
   @SuppressWarnings("unchecked")
   List<String> macIdList = Collections.EMPTY_LIST;
   settopFactory.findSettopByHostMac(macIdList);
 }
Example #4
0
 @Test(expected = IllegalArgumentException.class)
 public void findSettopListByHostMacEmpty() throws SettopNotFoundException {
   List<String> macIdList = new ArrayList<String>();
   settopFactory.findSettopByHostMac(macIdList);
 }
Example #5
0
 @Test(expected = SettopNotFoundException.class)
 public void findSettopByHostMacInvalid() throws SettopNotFoundException {
   settopFactory.findSettopByHostMac(INVALID_MAC_ID_FORMAT);
 }
Example #6
0
 @Test(expected = IllegalArgumentException.class)
 public void findSettopByHostMacEmpty() throws SettopNotFoundException {
   String macId = null;
   settopFactory.findSettopByHostMac(macId);
 }
Example #7
0
 @Test(expected = SettopNotFoundException.class)
 public void findSettopListByHostMacInvalid() throws SettopNotFoundException {
   List<String> macIdList = new ArrayList<String>();
   macIdList.add(INVALID_MAC_ID_FORMAT);
   settopFactory.findSettopByHostMac(macIdList);
 }