use of org.eclipse.nebula.widgets.nattable.test.fixture.command.AnyCommandHandlerFixture in project nebula.widgets.nattable by eclipse.
the class NatTableTest method shouldFireDisposeCommandOnDisposal.
@Test
public void shouldFireDisposeCommandOnDisposal() throws Exception {
AnyCommandHandlerFixture commandHandler = new AnyCommandHandlerFixture();
this.underlyingLayerFixture.registerCommandHandler(commandHandler);
this.natTable.dispose();
assertEquals(1, commandHandler.getNumberOfCommandsHandled());
assertTrue(commandHandler.getCommadHandled() instanceof DisposeResourcesCommand);
}
Aggregations