natTableFixture.registerLabelOnColumn(bodyDataLayer, 0, TEST_LABEL);
}
@Test
public void shouldMatchCellsWithCustomLabels() throws Exception {
CellLabelMouseEventMatcher matcher = new CellLabelMouseEventMatcher(
GridRegion.BODY, MouseEventMatcher.LEFT_BUTTON, TEST_LABEL);
boolean match = matcher.matches(natTableFixture, new MouseEvent(
SWTUtils.getLeftClickEvent(100, 100, 0, natTableFixture)),
new LabelStack(GridRegion.BODY));
Assert.assertTrue(match);
}