use of org.eclipse.nebula.widgets.nattable.filterrow.ParseResult in project nebula.widgets.nattable by eclipse.
the class FilterRowUtilsTest method parseEqualSymbolWithSpace.
@Test
public void parseEqualSymbolWithSpace() 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 parseNotEqualSymbolWithSpace.
@Test
public void parseNotEqualSymbolWithSpace() 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 parseLessThanSymbol.
@Test
public void parseLessThanSymbol() throws Exception {
ParseResult result = FilterRowUtils.parse("< 100", NULL_DELIMITER, TextMatchingMode.REGULAR_EXPRESSION).get(0);
assertEquals(MatchType.LESS_THAN, 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 parseLessThanSymbolWithoutSpace.
@Test
public void parseLessThanSymbolWithoutSpace() throws Exception {
ParseResult result = FilterRowUtils.parse("<100", NULL_DELIMITER, TextMatchingMode.REGULAR_EXPRESSION).get(0);
assertEquals(MatchType.LESS_THAN, 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 parseGreaterThanOrEqualSymbolWithSpace.
@Test
public void parseGreaterThanOrEqualSymbolWithSpace() 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());
}
Aggregations