@Test(expectedExceptions=HttpRuntimeException.class) public void testGetByQuery() throws HttpException { RestClient mockClient = EasyMock.createMock(RestClient.class); DawgHouseClient client = new DawgHouseClient(); client.setClient(mockClient); RestResponse response = new RestResponse(new BasicStatusLine(new ProtocolVersion("HTTP", 0, 0), 0, null)); EasyMock.expect(mockClient.execute((RestRequest) EasyMock.anyObject())).andReturn(response); EasyMock.replay(mockClient); String query = ""; client.getByQuery(query); }
@Override public Collection<MetaStb> getByQuery(String query) { return getByCollection("/devices }
DawgHouseClient extends DawgClient implements IDawgHouseClient<MetaStb> { @Override public Collection<MetaStb> getByQuery(String query) { return getByCollection("/devices } }
DawgHouseClient extends DawgClient implements IDawgHouseClient<MetaStb> { @Override public Collection<MetaStb> getByQuery(String query) { return getByCollection("/devices } DawgHouseClient();  DawgHouseClient(String baseURL); }
DawgHouseClient extends DawgClient implements IDawgHouseClient<MetaStb> { @Override public Collection<MetaStb> getByQuery(String query) { return getByCollection("/devices } DawgHouseClient();  DawgHouseClient(String baseURL); @Override MetaStb getById(String id); @Override void add(MetaStb stb); @Override void delete(String id); @Override Collection<MetaStb> getByIds(Collection<String> ids); @Override Collection<MetaStb> getByQuery(String query); @Override void deleteByIds(Collection<String> ids); @Override void delete(MetaStb stb); @Override void delete(Collection<MetaStb> stbs); @Override void add(Collection<MetaStb> stbs); @Override void update(MetaStb stb); @Override void update(Collection<String> id, Map<String, Object> data); @Override Collection<MetaStb> getAll(); DawgModel[] getDawgModels(String... modelNames); }
DawgHouseClient extends DawgClient implements IDawgHouseClient<MetaStb> { @Override public Collection<MetaStb> getByQuery(String query) { return getByCollection("/devices } DawgHouseClient();  DawgHouseClient(String baseURL); @Override MetaStb getById(String id); @Override void add(MetaStb stb); @Override void delete(String id); @Override Collection<MetaStb> getByIds(Collection<String> ids); @Override Collection<MetaStb> getByQuery(String query); @Override void deleteByIds(Collection<String> ids); @Override void delete(MetaStb stb); @Override void delete(Collection<MetaStb> stbs); @Override void add(Collection<MetaStb> stbs); @Override void update(MetaStb stb); @Override void update(Collection<String> id, Map<String, Object> data); @Override Collection<MetaStb> getAll(); DawgModel[] getDawgModels(String... modelNames);  }