Search in sources :

Example 1 with ColumnHeaderLayerFixture

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

the class ChooseColumnsFromCategoriesCommandHandlerTest method setup.

@Before
public void setup() {
    this.hideShowLayerFixture = new ColumnHideShowLayerFixture();
    this.commandHandler = new ChooseColumnsFromCategoriesCommandHandler(this.hideShowLayerFixture, new ColumnHeaderLayerFixture(), new DataLayerFixture(), new ColumnCategoriesModelFixture());
}
Also used : ColumnHeaderLayerFixture(org.eclipse.nebula.widgets.nattable.test.fixture.layer.ColumnHeaderLayerFixture) ColumnHideShowLayerFixture(org.eclipse.nebula.widgets.nattable.test.fixture.layer.ColumnHideShowLayerFixture) DataLayerFixture(org.eclipse.nebula.widgets.nattable.test.fixture.layer.DataLayerFixture) ColumnCategoriesModelFixture(org.eclipse.nebula.widgets.nattable.test.fixture.ColumnCategoriesModelFixture) Before(org.junit.Before)

Example 2 with ColumnHeaderLayerFixture

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

the class ColumnChooserUtilsTest method shouldProvideRenamedLabelsIfTheColumnHasBeenRenamed.

@Test
public void shouldProvideRenamedLabelsIfTheColumnHasBeenRenamed() throws Exception {
    ColumnHeaderLayerFixture columnHeaderLayer = new ColumnHeaderLayerFixture();
    assertEquals("[1, 0]", getColumnLabel(columnHeaderLayer, getDataLayer(), 1));
    columnHeaderLayer.renameColumnPosition(1, "renamed");
    assertEquals("renamed*", getColumnLabel(columnHeaderLayer, getDataLayer(), 1));
}
Also used : ColumnHeaderLayerFixture(org.eclipse.nebula.widgets.nattable.test.fixture.layer.ColumnHeaderLayerFixture) Test(org.junit.Test)

Example 3 with ColumnHeaderLayerFixture

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

the class RenameColumnHelperTest method setup.

@Before
public void setup() {
    ColumnHeaderLayer columnHeaderLayer = new ColumnHeaderLayerFixture();
    this.properties = new Properties();
    this.helper = new RenameColumnHelper(columnHeaderLayer);
}
Also used : RenameColumnHelper(org.eclipse.nebula.widgets.nattable.columnRename.RenameColumnHelper) ColumnHeaderLayer(org.eclipse.nebula.widgets.nattable.grid.layer.ColumnHeaderLayer) ColumnHeaderLayerFixture(org.eclipse.nebula.widgets.nattable.test.fixture.layer.ColumnHeaderLayerFixture) Properties(java.util.Properties) Before(org.junit.Before)

Aggregations

ColumnHeaderLayerFixture (org.eclipse.nebula.widgets.nattable.test.fixture.layer.ColumnHeaderLayerFixture)3 Before (org.junit.Before)2 Properties (java.util.Properties)1 RenameColumnHelper (org.eclipse.nebula.widgets.nattable.columnRename.RenameColumnHelper)1 ColumnHeaderLayer (org.eclipse.nebula.widgets.nattable.grid.layer.ColumnHeaderLayer)1 ColumnCategoriesModelFixture (org.eclipse.nebula.widgets.nattable.test.fixture.ColumnCategoriesModelFixture)1 ColumnHideShowLayerFixture (org.eclipse.nebula.widgets.nattable.test.fixture.layer.ColumnHideShowLayerFixture)1 DataLayerFixture (org.eclipse.nebula.widgets.nattable.test.fixture.layer.DataLayerFixture)1 Test (org.junit.Test)1