ScenarioGridColumnRenderer extends StringColumnRenderer { protected String getValueToShow(ScenarioGridCell scenarioGridCell) { String rawValue = scenarioGridCell.getValue() != null ? scenarioGridCell.getValue().getValue() : null; return (rawValue != null && (scenarioGridCell.isList() || scenarioGridCell.isMap())) ? getCollectionString(rawValue, scenarioGridCell.isList()) : rawValue; }  @Override Group renderCell(final GridCell<String> cell,
                            final GridBodyCellRenderContext context); @Override List<GridRenderer.RendererCommand> renderColumn(GridColumn<?> column, GridBodyColumnRenderContext context, BaseGridRendererHelper rendererHelper, BaseGridRendererHelper.RenderingInformation renderingInformation, BiFunction<Boolean, GridColumn<?>, Boolean> columnRenderingConstraint);  }
@Test public void getValueToShow(){ ScenarioGridCell cell = new ScenarioGridCell(null); commonGetValueToShow(cell, true, null, false); cell = new ScenarioGridCell(new ScenarioGridCellValue(null)); commonGetValueToShow(cell, true, null, false); cell = new ScenarioGridCell(new ScenarioGridCellValue(MULTIPART_VALUE)); commonGetValueToShow(cell, false, null, false); cell = new ScenarioGridCell(new ScenarioGridCellValue(LIST_VALUE)); cell.setListMap(true); commonGetValueToShow(cell, false, LIST_VALUE, true); cell = new ScenarioGridCell(new ScenarioGridCellValue(MAP_VALUE)); cell.setListMap(false); commonGetValueToShow(cell, false, MAP_VALUE, false); cell = new ScenarioGridCell(new ScenarioGridCellValue(EXPRESSION_VALUE)); cell.setListMap(true); commonGetValueToShow(cell, false, EXPRESSION_VALUE, true); cell = new ScenarioGridCell(new ScenarioGridCellValue(EXPRESSION_VALUE)); cell.setListMap(false); commonGetValueToShow(cell, false, EXPRESSION_VALUE, false); }