*/
public void startMenuItemSuccess() throws Exception {
builder.startMenu();
Object container = getCurrentEntity();
MenuItem item;
Object menu;
builder.startMenuItem();
item = (MenuItem)getCurrentEntity();
assertSame("container (1) not as",
container,
item.getContainer());
assertSame("menu (1) not as",
container,
item.getMenu());
configureMinimalItem();
builder.endMenuItem();
builder.startMenu();
// This menu will be the menu for items in this menu or in menu groups
// that are children of this menu
menu = container = getCurrentEntity();
builder.startMenuItem();
item = (MenuItem)getCurrentEntity();
assertSame("container (2) not as",
container,
item.getContainer());
assertSame("menu (2) not as",
container,
item.getMenu());
configureMinimalItem();
builder.endMenuItem();
builder.startMenuGroup();
container = getCurrentEntity();
builder.startMenuItem();
item = (MenuItem)getCurrentEntity();
assertSame("container (3) not as",
container,
item.getContainer());
assertSame("menu (3) not as",
menu,
item.getMenu());
}