public IFile[] getFiles() {
return new IFile[0];
}
};
DeviceSearchQueryOptions options = new DeviceSearchQueryOptions();
options.setCaseSensitive(true);
String searchString = "*PC*?";
DeviceSearchQuery query = new DeviceSearchQuery(scope, searchString,
options);
String regExpStr = (String) PrivateAccessor.invoke(query,
"createRegExpString",
null, null);
assertEquals("^.*PC.*.?$", regExpStr);
options.setCaseSensitive(false);
regExpStr = (String) PrivateAccessor.invoke(query,
"createRegExpString",
null, null);
assertEquals("^.*[Pp][Cc].*.?$", regExpStr);
options.setRegularExpression(true);
}