use of org.eclipse.nebula.widgets.nattable.ui.matcher.IKeyEventMatcher in project nebula.widgets.nattable by eclipse.
the class KeyEventMatcherTest method testMap.
@Test
public void testMap() {
Map<IKeyEventMatcher, String> map = new HashMap<IKeyEventMatcher, String>();
map.put(new KeyEventMatcher(12, 101), "ABC");
Assert.assertEquals(1, map.size());
map.remove(new KeyEventMatcher(12, 101));
Assert.assertEquals(0, map.size());
}
use of org.eclipse.nebula.widgets.nattable.ui.matcher.IKeyEventMatcher in project nebula.widgets.nattable by eclipse.
the class KeyEventMatcherTest method testNotEqual.
@Test
public void testNotEqual() {
IKeyEventMatcher matcher = new KeyEventMatcher(12, 101);
Assert.assertFalse(matcher.equals(new KeyEventMatcher(11, 101)));
Assert.assertFalse(matcher.equals(new KeyEventMatcher(12, 102)));
Assert.assertFalse(matcher.equals(new KeyEventMatcher(11, 102)));
}
use of org.eclipse.nebula.widgets.nattable.ui.matcher.IKeyEventMatcher in project nebula.widgets.nattable by eclipse.
the class KeyEventMatcherTest method testEquals.
@Test
public void testEquals() {
IKeyEventMatcher matcher1 = new KeyEventMatcher(12, 101);
IKeyEventMatcher matcher2 = new KeyEventMatcher(12, 101);
Assert.assertEquals(matcher1, matcher2);
}
Aggregations