/** * Creates an indexed add operation using the specified address and index * @param address a path address * @param index * @return an add operation */ public static ModelNode createAddOperation(PathAddress address, int index) { return createAddOperation(address, index, Collections.emptyMap()); }
ModelNode add = Operations.createAddOperation(forkAddress.append(ProtocolResourceDefinition.pathElement("MERGE3")), 0); ModelTestUtils.checkOutcome(services.executeOperation(add)); add = Operations.createAddOperation(stackAddress.append(ProtocolResourceDefinition.pathElement("FD")), 3); //The original index of the FD protocol ModelTestUtils.checkOutcome(services.executeOperation(add));
/** * Creates an indexed add operation using the specified address and index * @param address a path address * @param index * @return an add operation */ public static ModelNode createAddOperation(PathAddress address, int index) { return createAddOperation(address, index, Collections.emptyMap()); }