@Test public void setProviderInfos() throws Exception { ProviderGroup pg = new ProviderGroup("xxx", null); List list = pg.getProviderInfos(); Assert.assertNotNull(list); Assert.assertTrue(list.size() == 0); List<ProviderInfo> newps = new ArrayList<ProviderInfo>(); pg.setProviderInfos(newps); Assert.assertNotNull(list); Assert.assertTrue(list != pg.getProviderInfos()); Assert.assertTrue(newps == pg.getProviderInfos()); newps = Arrays.asList(ProviderHelper.toProviderInfo("127.0.0.1:12200")); pg.setProviderInfos(newps); Assert.assertNotNull(list); Assert.assertTrue(newps == pg.getProviderInfos()); Assert.assertTrue(pg.getProviderInfos().size() == 1); }
public void setProviderInfos(List<ProviderInfo> providerInfos) { this.providerInfos = providerInfos; }
ProviderGroup { public void setProviderInfos(List<ProviderInfo> providerInfos) { this.providerInfos = providerInfos; } }
ProviderGroup { public void setProviderInfos(List<ProviderInfo> providerInfos) { this.providerInfos = providerInfos; } ProviderGroup();  ProviderGroup(String name);  ProviderGroup(String name, List<ProviderInfo> providerInfos);  ProviderGroup(List<ProviderInfo> providerInfos); }
ProviderGroup { public void setProviderInfos(List<ProviderInfo> providerInfos) { this.providerInfos = providerInfos; } ProviderGroup();  ProviderGroup(String name);  ProviderGroup(String name, List<ProviderInfo> providerInfos);  ProviderGroup(List<ProviderInfo> providerInfos); String getName(); List<ProviderInfo> getProviderInfos(); void setProviderInfos(List<ProviderInfo> providerInfos); boolean isEmpty(); int size(); ProviderGroup add(ProviderInfo providerInfo); ProviderGroup addAll(Collection<ProviderInfo> providerInfos); ProviderGroup remove(ProviderInfo providerInfo); ProviderGroup removeAll(List<ProviderInfo> providerInfos); @Override String toString(); }
ProviderGroup { public void setProviderInfos(List<ProviderInfo> providerInfos) { this.providerInfos = providerInfos; } ProviderGroup();  ProviderGroup(String name);  ProviderGroup(String name, List<ProviderInfo> providerInfos);  ProviderGroup(List<ProviderInfo> providerInfos); String getName(); List<ProviderInfo> getProviderInfos(); void setProviderInfos(List<ProviderInfo> providerInfos); boolean isEmpty(); int size(); ProviderGroup add(ProviderInfo providerInfo); ProviderGroup addAll(Collection<ProviderInfo> providerInfos); ProviderGroup remove(ProviderInfo providerInfo); ProviderGroup removeAll(List<ProviderInfo> providerInfos); @Override String toString();  }