Source:
public void editAggregateProvidersAttributesTest() throws Exception { String provider1name = randomAlphanumeric(5) + "_1", provider2name = randomAlphanumeric(5) + "_2", provider3name = randomAlphanumeric(5) + "_3", aggregateProvidersName = randomAlphanumeric(5); Address provider1address = elyOps.getElytronAddress(PROVIDER_LOADER, provider1name), provider2address = elyOps.getElytronAddress(PROVIDER_LOADER, provider2name), provider3address = elyOps.getElytronAddress(PROVIDER_LOADER, provider3name), aggregateProvidersAddress = elyOps.getElytronAddress(AGGREGATE_PROVIDERS, aggregateProvidersName); page.navigateToApplication().selectResource(AGGREGATE_PROVIDERS_LABEL); try { ops.add(provider1address).assertSuccess(); ops.add(provider2address).assertSuccess(); ops.add(provider3address).assertSuccess(); ops.add(aggregateProvidersAddress, Values.of(PROVIDERS, new ModelNodeListBuilder() .addNode(new ModelNode(provider1name)) .addNode(new ModelNode(provider2name)).build())); page.navigateToApplication().selectResource(AGGREGATE_PROVIDERS_LABEL).getResourceManager() .selectByName(aggregateProvidersName); page.switchToConfigAreaTab(ATTRIBUTES_LABEL); new ConfigChecker.Builder(client, aggregateProvidersAddress).configFragment(page.getConfigFragment()) .editAndSave(TEXT, PROVIDERS, provider2name + "\n" + provider3name).verifyFormSaved() .verifyAttribute(PROVIDERS, new ModelNodeListBuilder() .addNode(new ModelNode(provider2name)) .addNode(new ModelNode(provider3name)).build()); } finally { ops.removeIfExists(aggregateProvidersAddress); ops.removeIfExists(provider1address); ops.removeIfExists(provider2address); ops.removeIfExists(provider3address); adminOps.reloadIfRequired(); } }

Target:
public void editAggregateProvidersAttributesTest() throws Exception { String provider1name = randomAlphanumeric(5) + "_1", provider2name = randomAlphanumeric(5) + "_2", provider3name = randomAlphanumeric(5) + "_3", aggregateProvidersName = randomAlphanumeric(5); Address provider1address = elyOps.getElytronAddress(PROVIDER_LOADER, provider1name), provider2address = elyOps.getElytronAddress(PROVIDER_LOADER, provider2name), provider3address = elyOps.getElytronAddress(PROVIDER_LOADER, provider3name), aggregateProvidersAddress = elyOps.getElytronAddress(AGGREGATE_PROVIDERS, aggregateProvidersName); try { ops.add(provider1address).assertSuccess(); ops.add(provider2address).assertSuccess(); ops.add(provider3address).assertSuccess(); ops.add(aggregateProvidersAddress, Values.of(PROVIDERS, new ModelNodeListBuilder() .addNode(new ModelNode(provider1name)) .addNode(new ModelNode(provider2name)).build())); page.navigateToApplication().selectResource(AGGREGATE_PROVIDERS_LABEL).getResourceManager() .selectByName(aggregateProvidersName); page.switchToConfigAreaTab(ATTRIBUTES_LABEL); new ConfigChecker.Builder(client, aggregateProvidersAddress).configFragment(page.getConfigFragment()) .editAndSave(TEXT, PROVIDERS, provider2name + "\n" + provider3name).verifyFormSaved() .verifyAttribute(PROVIDERS, new ModelNodeListBuilder() .addNode(new ModelNode(provider2name)) .addNode(new ModelNode(provider3name)).build()); } finally { ops.removeIfExists(aggregateProvidersAddress); ops.removeIfExists(provider1address); ops.removeIfExists(provider2address); ops.removeIfExists(provider3address); adminOps.reloadIfRequired(); } }