/**
* Tests validation of query feeds.
*/
public void testValidateSearchFeedData()
{
Query query = new Query();
assertNotNull("Query is empty.", SmartFeedDialog.validateSearchFeedData(query, true, 1));
ICriteria criteria = query.addCriteria();
assertNotNull("Criteria is bad.", SmartFeedDialog.validateSearchFeedData(query, true, 1));
IProperty someProperty = (IProperty)query.getAvailableProperties().toArray()[0];
IComparisonOperation someOperation = (IComparisonOperation)someProperty.getComparsonOperations().toArray()[0];
criteria.setProperty(someProperty);
criteria.setComparisonOperation(someOperation);
criteria.setValue("1");