diff --git a/openbis/sourceTest/java/ch/systemsx/cisd/openbis/generic/shared/util/SimpleTableModelBuilderTest.java b/openbis/sourceTest/java/ch/systemsx/cisd/openbis/generic/shared/util/SimpleTableModelBuilderTest.java index 63a539b6274b648915a4cf0c35168250bdb56e10..ffe575712b1c277f076ab5fbcac40084ff9b05ca 100644 --- a/openbis/sourceTest/java/ch/systemsx/cisd/openbis/generic/shared/util/SimpleTableModelBuilderTest.java +++ b/openbis/sourceTest/java/ch/systemsx/cisd/openbis/generic/shared/util/SimpleTableModelBuilderTest.java @@ -131,6 +131,21 @@ public class SimpleTableModelBuilderTest extends AssertJUnit assertEquals(2, rows.size()); } + @Test + public void testUnicode() + { + SimpleTableModelBuilder builder = new SimpleTableModelBuilder(true); + builder.addHeader("unicode"); + IRowBuilder row = builder.addRow(); + row.setCell("unicode", "\u00C4 str\u00EFng"); + + TableModel tableModel = builder.getTableModel(); + + assertEquals(1, tableModel.getHeader().size()); + List<TableModelRow> rows = tableModel.getRows(); + assertEquals(new StringTableCell("\u00C4 str\u00EFng"), rows.get(0).getValues().get(0)); + } + @Test public void testAddRowWithWrongNumberOfCells() {