" }",
"}"});
canvas.refresh();
MenuInfo menu = canvas.getChildren(MenuInfo.class).get(0);
// create new MenuItem
MenuItemInfo newItem = createJavaInfo("com.smartgwt.client.widgets.menu.MenuItem");
{
FlowContainer flowContainer = new FlowContainerFactory(menu, false).get().get(0);
assertTrue(flowContainer.validateComponent(newItem));
flowContainer.command_CREATE(newItem, null);
}
assertThat(newItem.getMenu()).isSameAs(menu);
assertEditor(
"public class Test implements EntryPoint {",
" public void onModuleLoad() {",
" Canvas canvas = new Canvas();",
" Menu menu = new Menu();",