use of ca.odell.glazedlists.matchers.ThresholdMatcherEditor in project nebula.widgets.nattable by eclipse.
the class FilterRowUtilsTest method shouldMapBetweenNatTableAndGlazedLists.
@Test
@SuppressWarnings({ "unchecked", "rawtypes" })
public void shouldMapBetweenNatTableAndGlazedLists() throws Exception {
ThresholdMatcherEditor fixture = new ThresholdMatcherEditor();
FilterRowUtils.setMatchOperation(fixture, MatchType.EQUAL);
assertEquals(ThresholdMatcherEditor.EQUAL, fixture.getMatchOperation());
FilterRowUtils.setMatchOperation(fixture, MatchType.NOT_EQUAL);
assertEquals(ThresholdMatcherEditor.NOT_EQUAL, fixture.getMatchOperation());
FilterRowUtils.setMatchOperation(fixture, MatchType.GREATER_THAN);
assertEquals(ThresholdMatcherEditor.GREATER_THAN, fixture.getMatchOperation());
FilterRowUtils.setMatchOperation(fixture, MatchType.GREATER_THAN_OR_EQUAL);
assertEquals(ThresholdMatcherEditor.GREATER_THAN_OR_EQUAL, fixture.getMatchOperation());
FilterRowUtils.setMatchOperation(fixture, MatchType.LESS_THAN);
assertEquals(ThresholdMatcherEditor.LESS_THAN, fixture.getMatchOperation());
FilterRowUtils.setMatchOperation(fixture, MatchType.LESS_THAN_OR_EQUAL);
assertEquals(ThresholdMatcherEditor.LESS_THAN_OR_EQUAL, fixture.getMatchOperation());
}
Aggregations