DomAdminV2Builder extends DomAdminBuilderBase { private List<Configserver> getConfigServers(DeployState deployState, AbstractConfigProducer parent, Element adminE) { SimpleConfigProducer configServers = new SimpleConfigProducer(parent, "configservers"); List<Configserver> cfgs = new ArrayList<>(); Element configserversE = XML.getChild(adminE, "configservers"); if (configserversE == null) { Element configserverE = XML.getChild(adminE, "configserver"); if (configserverE == null) { configserverE = XML.getChild(adminE, "adminserver"); } else { deployState.getDeployLogger().log(Level.INFO, "Specifying configserver without parent element configservers in services.xml is deprecated"); } Configserver cfgs0 = new ConfigserverBuilder(0, configServerSpecs).build(deployState, configServers, configserverE); cfgs0.setProp("index", 0); cfgs.add(cfgs0); return cfgs; } int i = 0; for (Element configserverE : XML.getChildren(configserversE, "configserver")) { Configserver cfgsrv = new ConfigserverBuilder(i, configServerSpecs).build(deployState, configServers, configserverE); cfgsrv.setProp("index", i); cfgs.add(cfgsrv); i++; } return cfgs; } DomAdminV2Builder(ConfigModelContext.ApplicationType applicationType,
                             FileRegistry fileRegistry,
                             boolean multitenant,
                             List<ConfigServerSpec> configServerSpecs);   }
@Test public void adminWithConfigserverElement() { Admin admin = buildAdmin(servicesConfigserver()); assertThat(admin.getConfigservers().size(), is(1)); }
@Test public void adminWithConfigserversElement() { Admin admin = buildAdmin(servicesConfigservers()); assertThat(admin.getConfigservers().size(), is(1)); }