devicesWithXWAPProfileSecondaryIDs.add("XHTML-Handset");
devicesWithXWAPProfileSecondaryIDs.add("Samsung-SprintPCS");
List devices = deviceRepository.getDevices("*");
for (int i = 0; i < devices.size(); i++) {
DefaultDevice device = (DefaultDevice) deviceRepository.getDevice(
(String)devices.get(i));
if (device.getSecondaryIDHeaderName() != null) {
if (DevicesHelper.X_WAP_PROFILE.equals(
device.getSecondaryIDHeaderName())) {
assertTrue("Secondary device ID should match",
devicesWithXWAPProfileSecondaryIDs.contains(
device.getName()));
}
}
// The map of is keyed on the regular expression which maps to the
// revision number. This always seems to be 0 in an XML repository.
Map patterns = device.getPatterns();
if (patterns != null) {
Set keys = patterns.keySet();
Iterator iterator = keys.iterator();
while (iterator.hasNext()) {
String regularExpression = (String) iterator.next();