fix random lowercasing in test

This commit is contained in:
fjy 2014-10-30 10:56:39 -07:00
parent 75da039396
commit 3e158f00ef
1 changed files with 2 additions and 2 deletions

View File

@ -87,7 +87,7 @@ public class SearchQueryRunnerTest
QueryRunnerTestHelper.qualityDimension, QueryRunnerTestHelper.qualityDimension,
Sets.newHashSet("automotive", "mezzanine", "travel", "health", "entertainment") Sets.newHashSet("automotive", "mezzanine", "travel", "health", "entertainment")
); );
expectedResults.put(QueryRunnerTestHelper.providerDimension.toLowerCase(), Sets.newHashSet("total_market")); expectedResults.put(QueryRunnerTestHelper.providerDimension, Sets.newHashSet("total_market"));
expectedResults.put(QueryRunnerTestHelper.placementishDimension, Sets.newHashSet("a")); expectedResults.put(QueryRunnerTestHelper.placementishDimension, Sets.newHashSet("a"));
checkSearchQuery(searchQuery, expectedResults); checkSearchQuery(searchQuery, expectedResults);
@ -110,7 +110,7 @@ public class SearchQueryRunnerTest
.build(); .build();
Map<String, Set<String>> expectedResults = Maps.newTreeMap(String.CASE_INSENSITIVE_ORDER); Map<String, Set<String>> expectedResults = Maps.newTreeMap(String.CASE_INSENSITIVE_ORDER);
expectedResults.put(QueryRunnerTestHelper.placementDimension.toLowerCase(), Sets.newHashSet("preferred")); expectedResults.put(QueryRunnerTestHelper.placementDimension, Sets.newHashSet("preferred"));
expectedResults.put(QueryRunnerTestHelper.placementishDimension, Sets.newHashSet("e", "preferred")); expectedResults.put(QueryRunnerTestHelper.placementishDimension, Sets.newHashSet("e", "preferred"));
checkSearchQuery(searchQuery, expectedResults); checkSearchQuery(searchQuery, expectedResults);