" listBox.insertItem('text_3', 'value_3', 3);",
" }",
" }",
"}");
frame.refresh();
WidgetInfo listBox = frame.getChildrenWidgets().get(0);
Object listBoxObject = listBox.getObject();
// check
assertEquals(4, ReflectionUtils.invokeMethod(listBoxObject, "getItemCount()"));
// item: 0
assertEquals("text_0", ReflectionUtils.invokeMethod(listBoxObject, "getItemText(int)", 0));
assertEquals("text_0", ReflectionUtils.invokeMethod(listBoxObject, "getValue(int)", 0));