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);
}
Aggregations