@Test public void testAddStbsWithNullStbs() throws HttpException { RestClient mockClient = EasyMock.createMock(RestClient.class); DawgHouseClient client = new DawgHouseClient(); client.setClient(mockClient); EasyMock.expect(mockClient.put((String) EasyMock.anyObject(),(Map)EasyMock.anyObject())).andReturn(true); EasyMock.replay(mockClient); Collection<MetaStb> stbs = null; client.add(stbs); }
@Override public void add(MetaStb stb) { httpput("/devices/id/"+stb.getId(), stb); }
DawgHouseClient extends DawgClient implements IDawgHouseClient<MetaStb> { @Override public void add(MetaStb stb) { httpput("/devices/id/"+stb.getId(), stb); } }
DawgHouseClient extends DawgClient implements IDawgHouseClient<MetaStb> { @Override public void add(MetaStb stb) { httpput("/devices/id/"+stb.getId(), stb); } DawgHouseClient();  DawgHouseClient(String baseURL); }
DawgHouseClient extends DawgClient implements IDawgHouseClient<MetaStb> { @Override public void add(MetaStb stb) { httpput("/devices/id/"+stb.getId(), stb); } 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 void add(MetaStb stb) { httpput("/devices/id/"+stb.getId(), stb); } 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);  }