"<g:FlowPanel>",
" <g:MenuBar wbp:name='bar'>",
" <g:MenuItemSeparator wbp:name='separator'>");
refresh();
MenuBarInfo bar = getObjectByName("bar");
MenuItemSeparatorInfo separator = getObjectByName("separator");
// only separator in "bar"
assertThat(bar.getAllItems()).containsOnly(separator);
// IMenuItemInfo
{
IMenuItemInfo separatorObject;
{
IMenuInfo barObject = MenuObjectInfoUtils.getMenuInfo(bar);
List<IMenuItemInfo> items = barObject.getItems();
assertThat(items).hasSize(1);
separatorObject = items.get(0);
}
// ask IMenuItemInfo directly
assertNull(separator.getAdapter(List.class));
assertSame(separatorObject, MenuObjectInfoUtils.getMenuItemInfo(separator));
// model
assertSame(separator, separatorObject.getModel());
assertSame(separator, separatorObject.getToolkitModel());
// presentation