Examples of containsInstanceOf()


Examples of org.eclipse.nebula.widgets.nattable.test.fixture.layer.LayerListenerFixture.containsInstanceOf()

        Assert.assertEquals(0, reorderLayer.getColumnIndexByPosition(0));
        Assert.assertEquals(1, reorderLayer.getColumnIndexByPosition(1));
        Assert.assertEquals(3, reorderLayer.getColumnIndexByPosition(2));
        Assert.assertEquals(2, reorderLayer.getColumnIndexByPosition(3));

        Assert.assertTrue(listener
                .containsInstanceOf(ColumnStructuralRefreshEvent.class));
    }

    @Test
    public void skipLoadingStateIfPersistedStateDoesNotMatchDataSource()
View Full Code Here

Examples of org.eclipse.nebula.widgets.nattable.test.fixture.layer.LayerListenerFixture.containsInstanceOf()

        Assert.assertEquals(0, reorderLayer.getRowIndexByPosition(0));
        Assert.assertEquals(1, reorderLayer.getRowIndexByPosition(1));
        Assert.assertEquals(3, reorderLayer.getRowIndexByPosition(2));
        Assert.assertEquals(2, reorderLayer.getRowIndexByPosition(3));

        Assert.assertTrue(listener
                .containsInstanceOf(RowStructuralRefreshEvent.class));
    }

    @Test
    public void skipLoadingStateIfPersistedStateDoesNotMatchDataSource()
View Full Code Here

Examples of org.eclipse.nebula.widgets.nattable.test.fixture.layer.LayerListenerFixture.containsInstanceOf()

        LayerListenerFixture listener = new LayerListenerFixture();

        natTable.addLayerListener(listener);
        natTable.handleLayerEvent(new LayerEventFixture());

        assertTrue(listener.containsInstanceOf(LayerEventFixture.class));
    }

    @Test
    public void shouldFireDisposeCommandOnDisposal() throws Exception {
        AnyCommandHandlerFixture commandHandler = new AnyCommandHandlerFixture();
View Full Code Here

Examples of org.eclipse.nebula.widgets.nattable.test.fixture.layer.LayerListenerFixture.containsInstanceOf()

        // Trigger summary calculation
        natTable.getDataValueByPosition(askPriceColumnIndex, 4);

        Thread.sleep(500);

        assertTrue(listener.containsInstanceOf(CellVisualChangeEvent.class));
        CellVisualChangeEvent event = (CellVisualChangeEvent) listener
                .getReceivedEvents().get(0);

        assertEquals(askPriceColumnIndex, event.getColumnPosition());
        assertEquals(4, event.getRowPosition());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.