Package org.eclipse.nebula.widgets.nattable.ui.matcher

Examples of org.eclipse.nebula.widgets.nattable.ui.matcher.BodyCellEditorMouseEventMatcher


public class BodyCellEditorMouseEventMatcherTest {

    @Test
    public void testEquals() {
        IMouseEventMatcher matcher1 = new BodyCellEditorMouseEventMatcher(
                TextCellEditor.class);
        IMouseEventMatcher matcher2 = new BodyCellEditorMouseEventMatcher(
                TextCellEditor.class);
        Assert.assertEquals(matcher1, matcher2);
    }
View Full Code Here


        Assert.assertEquals(matcher1, matcher2);
    }

    @Test
    public void testNotEqual() {
        IMouseEventMatcher matcher = new BodyCellEditorMouseEventMatcher(
                TextCellEditor.class);
        Assert.assertFalse(matcher.equals(new BodyCellEditorMouseEventMatcher(
                CheckBoxCellEditor.class)));
    }
View Full Code Here

    }

    @Test
    public void testMap() {
        Map<IMouseEventMatcher, String> map = new HashMap<IMouseEventMatcher, String>();
        map.put(new BodyCellEditorMouseEventMatcher(TextCellEditor.class),
                "ABC");
        Assert.assertEquals(1, map.size());
        map.remove(new BodyCellEditorMouseEventMatcher(TextCellEditor.class));
        Assert.assertEquals(0, map.size());
    }
View Full Code Here

TOP

Related Classes of org.eclipse.nebula.widgets.nattable.ui.matcher.BodyCellEditorMouseEventMatcher

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.