@Test public void testGetHouseClient() { CachedDawgClientFactory factory = new CachedDawgClientFactory(new MetaStb(),"",""); @SuppressWarnings("rawtypes") IDawgHouseClient expected = factory.getHouseClient(); Assert.assertEquals(factory.getHouseClient(), expected); }
@Override public IDawgHouseClient<?> getHouseClient() { if (null == houseClient) { if (null == dawgHouseHost) { houseClient = new DawgHouseClient(); } else { houseClient = new DawgHouseClient(dawgHouseHost); } } return houseClient; }
CachedDawgClientFactory implements IDawgClientFactory { @Override public IDawgHouseClient<?> getHouseClient() { if (null == houseClient) { if (null == dawgHouseHost) { houseClient = new DawgHouseClient(); } else { houseClient = new DawgHouseClient(dawgHouseHost); } } return houseClient; } }
CachedDawgClientFactory implements IDawgClientFactory { @Override public IDawgHouseClient<?> getHouseClient() { if (null == houseClient) { if (null == dawgHouseHost) { houseClient = new DawgHouseClient(); } else { houseClient = new DawgHouseClient(dawgHouseHost); } } return houseClient; } CachedDawgClientFactory(MetaStb metaStb);  CachedDawgClientFactory(MetaStb metaStb, String dawgHouseHost, String dawgPoundHost); }
CachedDawgClientFactory implements IDawgClientFactory { @Override public IDawgHouseClient<?> getHouseClient() { if (null == houseClient) { if (null == dawgHouseHost) { houseClient = new DawgHouseClient(); } else { houseClient = new DawgHouseClient(dawgHouseHost); } } return houseClient; } CachedDawgClientFactory(MetaStb metaStb);  CachedDawgClientFactory(MetaStb metaStb, String dawgHouseHost, String dawgPoundHost); @Override IDawgHouseClient<?> getHouseClient(); @Override IDawgPoundClient getPoundClient(); @Override IrClient getIrClient(); @Override PowerClient getPowerClient(); @Override SerialClient getSerialClient(); }
CachedDawgClientFactory implements IDawgClientFactory { @Override public IDawgHouseClient<?> getHouseClient() { if (null == houseClient) { if (null == dawgHouseHost) { houseClient = new DawgHouseClient(); } else { houseClient = new DawgHouseClient(dawgHouseHost); } } return houseClient; } CachedDawgClientFactory(MetaStb metaStb);  CachedDawgClientFactory(MetaStb metaStb, String dawgHouseHost, String dawgPoundHost); @Override IDawgHouseClient<?> getHouseClient(); @Override IDawgPoundClient getPoundClient(); @Override IrClient getIrClient(); @Override PowerClient getPowerClient(); @Override SerialClient getSerialClient();  }