use of org.eclipse.nebula.widgets.nattable.test.fixture.layer.DataLayerFixture in project nebula.widgets.nattable by eclipse.
the class DisplayColumnStyleEditorCommandHandlerTest method setup.
@Before
public void setup() {
this.labelAccumulatorFixture = new ColumnOverrideLabelAccumulator(new DataLayerFixture());
this.natTableFixture = new NatTableFixture();
this.configRegistryFixture = this.natTableFixture.getConfigRegistry();
this.commandFixture = new DisplayColumnStyleEditorCommand(this.natTableFixture, this.natTableFixture.getConfigRegistry(), 1, 1);
final SelectionLayer selectionLayer = ((DummyGridLayerStack) this.natTableFixture.getLayer()).getBodyLayer().getSelectionLayer();
this.handlerUnderTest = new DisplayColumnStyleEditorCommandHandler(selectionLayer, this.labelAccumulatorFixture, this.configRegistryFixture);
}
use of org.eclipse.nebula.widgets.nattable.test.fixture.layer.DataLayerFixture in project nebula.widgets.nattable by eclipse.
the class ViewportLayerTest method shouldPickUpTheDefaultClientAreaIfItHasNotBeenSet.
@Test
public void shouldPickUpTheDefaultClientAreaIfItHasNotBeenSet() throws Exception {
ViewportLayer viewportLayer = new ViewportLayer(new DataLayerFixture());
assertEquals(IClientAreaProvider.DEFAULT, viewportLayer.getClientAreaProvider());
}
Aggregations