WSDLInterface intfc;
WSDLInterface[] array = new WSDLInterface[5];
int interfaceCounter = 5;
int operationCounter = 5;
for (int i = 0; i < interfaceCounter; i++) {
intfc = new WSDLInterfaceImpl();
for (int j = 0; j < operationCounter; j++) {
op = new WSDLOperationImpl();
op.setName(new QName(WSDLConstants.WSDL1_1_NAMESPACE,
"operation" + j));
intfc.setOperation(op);
}
intfc.setName(new QName(WSDLConstants.WSDL2_0_NAMESPACE,
"Interface" + i));
array[i] = intfc;
}
WSDLInterface inheritedInterface = new WSDLInterfaceImpl();
for (int i = 0; i < array.length; i++) {
inheritedInterface.addSuperInterface(array[i]);
}
assertEquals(inheritedInterface.getAllOperations().size(), 5);
}