AbstractDeviceRepositoryAccessor accessor =
createAccessor(deviceRepositoryFile);
Set expectedDeviceNames = new HashSet();
Set actualDeviceNames = new HashSet();
RepositoryEnumeration nameEnum =
accessor.enumerateDeviceNames(createConnection());
String[] deviceNames = getExpectedDeviceNames();
for (int i = 0; i < deviceNames.length; i++) {
expectedDeviceNames.add(deviceNames[i]);
}
while (nameEnum.hasNext()) {
actualDeviceNames.add(nameEnum.next());
}
assertEquals("device names not as",
expectedDeviceNames,
actualDeviceNames);