Search in sources :

Example 36 with TestLayer

use of org.eclipse.nebula.widgets.nattable.test.fixture.TestLayer in project nebula.widgets.nattable by eclipse.

the class ViewportLayerTest2 method testScrollRight.

@Test
public void testScrollRight() {
    this.viewportLayer.setOriginX(this.viewportLayer.getStartXOfColumnPosition(2));
    String columnInfo = "2:2;100 | 3:3;100";
    String rowInfo = "0:0;40  | 1:1;40  | 2:2;40  | 3:3;40";
    String cellInfo = "C0 | D0 \n" + "C1 | D1 \n" + "C2 | D2 \n" + "C3 | D3 \n";
    TestLayer expectedLayer = new TestLayer(2, 4, 400, 4, 4, 160, columnInfo, rowInfo, cellInfo);
    LayerAssert.assertLayerEquals(expectedLayer, this.viewportLayer);
}
Also used : TestLayer(org.eclipse.nebula.widgets.nattable.test.fixture.TestLayer) Test(org.junit.Test)

Aggregations

TestLayer (org.eclipse.nebula.widgets.nattable.test.fixture.TestLayer)36 Test (org.junit.Test)26 FreezeColumnCommand (org.eclipse.nebula.widgets.nattable.freeze.command.FreezeColumnCommand)15 Before (org.junit.Before)10 IClientAreaProvider (org.eclipse.nebula.widgets.nattable.util.IClientAreaProvider)3 Rectangle (org.eclipse.swt.graphics.Rectangle)3 FreezeLayer (org.eclipse.nebula.widgets.nattable.freeze.FreezeLayer)2 FreezeSelectionCommand (org.eclipse.nebula.widgets.nattable.freeze.command.FreezeSelectionCommand)2 ColumnHideShowLayer (org.eclipse.nebula.widgets.nattable.hideshow.ColumnHideShowLayer)2 ViewportLayer (org.eclipse.nebula.widgets.nattable.viewport.ViewportLayer)2 CompositeFreezeLayer (org.eclipse.nebula.widgets.nattable.freeze.CompositeFreezeLayer)1 ColumnReorderLayer (org.eclipse.nebula.widgets.nattable.reorder.ColumnReorderLayer)1 SelectionLayer (org.eclipse.nebula.widgets.nattable.selection.SelectionLayer)1 InitializeClientAreaCommandFixture (org.eclipse.nebula.widgets.nattable.test.fixture.InitializeClientAreaCommandFixture)1