use of org.eclipse.nebula.widgets.nattable.filterrow.ParseResult in project nebula.widgets.nattable by eclipse.
the class FilterRowUtilsTest method parseWithoutThresholdSymbols.
@Test
public void parseWithoutThresholdSymbols() throws Exception {
ParseResult result = FilterRowUtils.parse("100", NULL_DELIMITER, TextMatchingMode.REGULAR_EXPRESSION).get(0);
assertEquals(MatchType.NONE, result.getMatchOperation());
assertEquals("100", result.getValueToMatch());
}
use of org.eclipse.nebula.widgets.nattable.filterrow.ParseResult in project nebula.widgets.nattable by eclipse.
the class FilterRowUtilsTest method parseEqualSymbol.
@Test
public void parseEqualSymbol() throws Exception {
ParseResult result = FilterRowUtils.parse("=100", NULL_DELIMITER, TextMatchingMode.REGULAR_EXPRESSION).get(0);
assertEquals(MatchType.EQUAL, result.getMatchOperation());
assertEquals("100", result.getValueToMatch());
}
use of org.eclipse.nebula.widgets.nattable.filterrow.ParseResult in project nebula.widgets.nattable by eclipse.
the class FilterRowUtilsTest method parseNotEqualSymbol.
@Test
public void parseNotEqualSymbol() throws Exception {
ParseResult result = FilterRowUtils.parse("<>100", NULL_DELIMITER, TextMatchingMode.REGULAR_EXPRESSION).get(0);
assertEquals(MatchType.NOT_EQUAL, result.getMatchOperation());
assertEquals("100", result.getValueToMatch());
}
use of org.eclipse.nebula.widgets.nattable.filterrow.ParseResult in project nebula.widgets.nattable by eclipse.
the class FilterRowUtilsTest method parseGreaterThanOrEqualSymbol.
@Test
public void parseGreaterThanOrEqualSymbol() throws Exception {
ParseResult result = FilterRowUtils.parse(">= 100", NULL_DELIMITER, TextMatchingMode.REGULAR_EXPRESSION).get(0);
assertEquals(MatchType.GREATER_THAN_OR_EQUAL, result.getMatchOperation());
assertEquals("100", result.getValueToMatch());
}
use of org.eclipse.nebula.widgets.nattable.filterrow.ParseResult in project nebula.widgets.nattable by eclipse.
the class FilterRowUtilsTest method parseLessThanOrEqualSymbol.
@Test
public void parseLessThanOrEqualSymbol() throws Exception {
ParseResult result = FilterRowUtils.parse("<=100", NULL_DELIMITER, TextMatchingMode.REGULAR_EXPRESSION).get(0);
assertEquals(MatchType.LESS_THAN_OR_EQUAL, result.getMatchOperation());
assertEquals("100", result.getValueToMatch());
}
Aggregations