use of org.eclipse.nebula.widgets.nattable.test.fixture.command.CommandHandlerFixture in project nebula.widgets.nattable by eclipse.
the class AbstractLayerTest method commandHandlerRegistration.
@Test
public void commandHandlerRegistration() throws Exception {
LayerCommandFixture command = new LayerCommandFixture();
CommandHandlerFixture commandHandler = new CommandHandlerFixture();
this.dataLayer.registerCommandHandler(commandHandler);
this.dataLayer.doCommand(command);
assertNotNull(commandHandler.getLastCommandHandled());
commandHandler.clearLastCommandHandled();
this.dataLayer.unregisterCommandHandler(command.getClass());
this.dataLayer.doCommand(command);
assertNull(commandHandler.getLastCommandHandled());
}
Aggregations