Assert.hasText(streamName, "stream name can not be empty nor null");
String moduleIdPrefix = streamName + "." + moduleType + ".";
Iterator<ModuleMetadataResource> resourceIter = StreamUtils.getRuntimeModules(adminServer).iterator();
ArrayList<String> containerIds = new ArrayList<String>();
while (resourceIter.hasNext()) {
ModuleMetadataResource resource = resourceIter.next();
if (resource.getModuleId().startsWith(moduleIdPrefix)) {
containerIds.add(resource.getContainerId());
}
}
Assert.isTrue(
containerIds.size() == 1,
"Test require that module to be deployed to only one container. It was deployed to "