BasicTimelineFilter implements TimelineFilter { boolean containsMatchingSymbol(List<SymbolEntity> symbols) { for (SymbolEntity entity : symbols) { if (hashTagConstraints.contains(entity.text)) { return true; } } return false; } BasicTimelineFilter(FilterValues filterValues);  BasicTimelineFilter(FilterValues filterValues, Locale locale); @Override List<Tweet> filter(List<Tweet> tweets); @Override int totalFilters();  }
@Test public void testContainsMatchingSymbol_withNoMatch() { final SymbolEntity entity = new SymbolEntity("foobar", 0, 0); assertFalse(basicTimelineFilter.containsMatchingSymbol(Collections.singletonList(entity))); }
@Test public void testContainsMatchingSymbol_withMatch() { final SymbolEntity entity = new SymbolEntity("cookies", 0, 0); assertTrue(basicTimelineFilter.containsMatchingSymbol(Collections.singletonList(entity))); }