Skip to content
Snippets Groups Projects
Commit 4385746b authored by cramakri's avatar cramakri
Browse files

MINOR : Added table model builder test that uses unicode

SVN: 28335
parent 9492ffaf
No related branches found
No related tags found
No related merge requests found
...@@ -131,6 +131,21 @@ public class SimpleTableModelBuilderTest extends AssertJUnit ...@@ -131,6 +131,21 @@ public class SimpleTableModelBuilderTest extends AssertJUnit
assertEquals(2, rows.size()); 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 @Test
public void testAddRowWithWrongNumberOfCells() public void testAddRowWithWrongNumberOfCells()
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment