@Test public void setProviderInfo() throws Exception { List<String> registryUrlList = Arrays.asList("u1", "u2", "u3"); String group = "g"; Application application = new Application(registryUrlList, group); assertNull(application.getProviderInfo()); assertEquals(registryUrlList, application.getRegistryUrlList()); assertEquals(group, application.getServerGroup()); ProviderInfo providerInfo = new ProviderInfo(); application.setProviderInfo(providerInfo); assertEquals(providerInfo, application.getProviderInfo()); }
public void setProviderInfo(ProviderInfo providerInfo) { this.providerInfo = providerInfo; }
Application { public void setProviderInfo(ProviderInfo providerInfo) { this.providerInfo = providerInfo; } }
Application { public void setProviderInfo(ProviderInfo providerInfo) { this.providerInfo = providerInfo; } Application();  Application(List<String> registryUrlList, String serverGroup);  Application(List<String> registryUrlList, ProviderInfo providerInfo, String serverGroup); }
Application { public void setProviderInfo(ProviderInfo providerInfo) { this.providerInfo = providerInfo; } Application();  Application(List<String> registryUrlList, String serverGroup);  Application(List<String> registryUrlList, ProviderInfo providerInfo, String serverGroup); String getServerGroup(); void setServerGroup(String serverGroup); List<String> getRegistryUrlList(); void setRegistryUrlList(List<String> registryUrlList); ProviderInfo getProviderInfo(); void setProviderInfo(ProviderInfo providerInfo); }
Application { public void setProviderInfo(ProviderInfo providerInfo) { this.providerInfo = providerInfo; } Application();  Application(List<String> registryUrlList, String serverGroup);  Application(List<String> registryUrlList, ProviderInfo providerInfo, String serverGroup); String getServerGroup(); void setServerGroup(String serverGroup); List<String> getRegistryUrlList(); void setRegistryUrlList(List<String> registryUrlList); ProviderInfo getProviderInfo(); void setProviderInfo(ProviderInfo providerInfo);  }