// Horizontal alignment
@Test
public void retreivedCellShouldHaveRightAlignment() {
// Register horizontal alignment
final HorizontalAlignmentEnum hAlignment = HorizontalAlignmentEnum.RIGHT;
cellStyle.setAttributeValue(CellStyleAttributes.HORIZONTAL_ALIGNMENT,
hAlignment);
configRegistry.registerConfigAttribute(CellConfigAttributes.CELL_STYLE,
cellStyle, DisplayMode.NORMAL,
AlternatingRowConfigLabelAccumulator.ODD_ROW_CONFIG_TYPE);
// Check cell horizontal alignment
ILayerCell cell = natTable.getCellByPosition(2, 2);
Assert.assertEquals(
hAlignment.name(),
configRegistry
.getConfigAttribute(CellConfigAttributes.CELL_STYLE,
cell.getDisplayMode(),
cell.getConfigLabels().getLabels())
.getAttributeValue(