Package org.eclipse.nebula.widgets.nattable.test.fixture.command

Examples of org.eclipse.nebula.widgets.nattable.test.fixture.command.CommandHandlerFixture


    }

    @Test
    public void commandHandlerRegistration() throws Exception {
        LayerCommandFixture command = new LayerCommandFixture();
        CommandHandlerFixture commandHandler = new CommandHandlerFixture();

        dataLayer.registerCommandHandler(commandHandler);
        dataLayer.doCommand(command);

        assertNotNull(commandHandler.getLastCommandHandled());
        commandHandler.clearLastCommandHandled();

        dataLayer.unregisterCommandHandler(command.getClass());
        dataLayer.doCommand(command);
        assertNull(commandHandler.getLastCommandHandled());
    }
View Full Code Here


    private DataLayer underlyingLayer = new DataLayerFixture(10, 5, 100, 20);
    private ILayer layer = new GenericLayerFixture(underlyingLayer);

    @Before
    public void setUp() {
        underlyingLayer.registerCommandHandler(new CommandHandlerFixture());
    }
View Full Code Here

TOP

Related Classes of org.eclipse.nebula.widgets.nattable.test.fixture.command.CommandHandlerFixture

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.