use of org.eclipse.nebula.widgets.nattable.test.fixture.TestLayer in project nebula.widgets.nattable by eclipse.
the class FreezeLayerTest2 method testFreezeAll.
@Test
public void testFreezeAll() {
this.freezeLayer.setTopLeftPosition(0, 0);
this.freezeLayer.setBottomRightPosition(3, 3);
TestLayer expectedLayer = new TestLayer(4, 4, "0:0;100 | 1:1;100 | 2:2;100 | 3:3;100", "0:0;40 | 1:1;40 | 2:2;40 | 3:3;40", "A0 | B0 | C0 | D0 \n" + "A1 | B1 | C1 | D1 \n" + "A2 | B2 | C2 | D2 \n" + "A3 | B3 | C3 | D3 \n");
LayerAssert.assertLayerEquals(expectedLayer, this.freezeLayer);
}
use of org.eclipse.nebula.widgets.nattable.test.fixture.TestLayer in project nebula.widgets.nattable by eclipse.
the class FreezeLayerTest2 method setup.
@Before
public void setup() {
TestLayer dataLayer = new TestLayer(4, 4, "0:0;100 | 1:1;100 | 2:2;100 | 3:3;100", "0:0;40 | 1:1;40 | 2:2;40 | 3:3;40", "A0 | B0 | C0 | D0 \n" + "A1 | B1 | C1 | D1 \n" + "A2 | B2 | C2 | D2 \n" + "A3 | B3 | C3 | D3 \n");
this.freezeLayer = new FreezeLayer(dataLayer);
}
use of org.eclipse.nebula.widgets.nattable.test.fixture.TestLayer in project nebula.widgets.nattable by eclipse.
the class FreezeLayerTest2 method testFreezeMiddle.
@Test
public void testFreezeMiddle() {
this.freezeLayer.setTopLeftPosition(1, 1);
this.freezeLayer.setBottomRightPosition(2, 2);
TestLayer expectedLayer = new TestLayer(2, 2, "1:1;100 | 2:2;100", "1:1;40 | 2:2;40", "B1 | C1 \n" + "B2 | C2 \n");
LayerAssert.assertLayerEquals(expectedLayer, this.freezeLayer);
}
use of org.eclipse.nebula.widgets.nattable.test.fixture.TestLayer in project nebula.widgets.nattable by eclipse.
the class FreezeLayerTest2 method testFreezeEnd.
@Test
public void testFreezeEnd() {
this.freezeLayer.setTopLeftPosition(1, 1);
this.freezeLayer.setBottomRightPosition(3, 3);
TestLayer expectedLayer = new TestLayer(3, 3, "1:1;100 | 2:2;100 | 3:3;100", "1:1;40 | 2:2;40 | 3:3;40", "B1 | C1 | D1 \n" + "B2 | C2 | D2 \n" + "B3 | C3 | D3 \n");
LayerAssert.assertLayerEquals(expectedLayer, this.freezeLayer);
}
use of org.eclipse.nebula.widgets.nattable.test.fixture.TestLayer in project nebula.widgets.nattable by eclipse.
the class ColumnHideShowLayerTest2 method setup.
@Before
public void setup() {
TestLayer dataLayer = new TestLayer(4, 4, "0:0;100 | 1:1;100 | 2:2;100 | 3:3;100", "0:0;40 | 1:1;40 | 2:2;40 | 3:3;40", "A0 | B0 | C0 | D0 \n" + "A1 | B1 | C1 | D1 \n" + "A2 | B2 | C2 | D2 \n" + "A3 | B3 | C3 | D3 \n");
this.hideShowLayer = new ColumnHideShowLayer(dataLayer);
}
Aggregations