@Test(expectedExceptions=KeyException.class) public void testPressKeyWithInvalidCatsHost() throws KeyException { MockIrClient client = new MockIrClient("", null, null, REMOTE_TYPE, HttpStatus.SC_BAD_REQUEST); client.pressKey(Key.VOLUP); }
@Override public void pressKey(Key key) throws KeyException { Map<String, Object> params = new HashMap<String, Object>(); params.put(COMMAND, key.getKey()); URL url = formKeyUrl(IrOperation.pressKey, params, null); executeRequest(url, key.name()); }
IrClient extends DawgClient implements KeyInput { @Override public void pressKey(Key key) throws KeyException { Map<String, Object> params = new HashMap<String, Object>(); params.put(COMMAND, key.getKey()); URL url = formKeyUrl(IrOperation.pressKey, params, null); executeRequest(url, key.name()); } }
IrClient extends DawgClient implements KeyInput { @Override public void pressKey(Key key) throws KeyException { Map<String, Object> params = new HashMap<String, Object>(); params.put(COMMAND, key.getKey()); URL url = formKeyUrl(IrOperation.pressKey, params, null); executeRequest(url, key.name()); } IrClient(IrMeta irMeta);  IrClient(IrMeta irMeta, String remoteType);  IrClient(String catsHost, String irHost, String port, String remoteType);  IrClient(String catsHost, String blasterType, String irHost, String port, String remoteType); }
IrClient extends DawgClient implements KeyInput { @Override public void pressKey(Key key) throws KeyException { Map<String, Object> params = new HashMap<String, Object>(); params.put(COMMAND, key.getKey()); URL url = formKeyUrl(IrOperation.pressKey, params, null); executeRequest(url, key.name()); } IrClient(IrMeta irMeta);  IrClient(IrMeta irMeta, String remoteType);  IrClient(String catsHost, String irHost, String port, String remoteType);  IrClient(String catsHost, String blasterType, String irHost, String port, String remoteType); @Override void pressKey(Key key); @Override void pressKey(Key key, RemoteType remoteType); @Override void pressKeys(Key... keys); @Override void pressKeys(long delay, Key... keys); @Override void pressKeys(boolean validate, Key... keys); @Override void holdKey(Key key, long holdTime); }
IrClient extends DawgClient implements KeyInput { @Override public void pressKey(Key key) throws KeyException { Map<String, Object> params = new HashMap<String, Object>(); params.put(COMMAND, key.getKey()); URL url = formKeyUrl(IrOperation.pressKey, params, null); executeRequest(url, key.name()); } IrClient(IrMeta irMeta);  IrClient(IrMeta irMeta, String remoteType);  IrClient(String catsHost, String irHost, String port, String remoteType);  IrClient(String catsHost, String blasterType, String irHost, String port, String remoteType); @Override void pressKey(Key key); @Override void pressKey(Key key, RemoteType remoteType); @Override void pressKeys(Key... keys); @Override void pressKeys(long delay, Key... keys); @Override void pressKeys(boolean validate, Key... keys); @Override void holdKey(Key key, long holdTime); static final Logger logger; static final String IR_SERVICE; static final String REST; static final String DEFAULT_BLASTER_TYPE; static final String KEY_SET; static final String COMMAND; static final String COMMAND_LIST; static final String DELAY_IN_MILLIS; static final String HOLD_TIME; static final long DEFAULT_DELAY; static final long SINGLE_KEY_PRESS_TIME; }