protected MarinerRequestContext getRequestContext() {
return new TestMarinerRequestContext();
}
protected void doTestAddMenuItem(PAPIAttributes gAttributes) {
MenuItemElementImpl menuItemElement = new MenuItemElementImpl();
MenuItemAttributes attributes =
new com.volantis.mcs.papi.MenuItemAttributes();
attributes.setHref("test://mytest");
AbstractElementImpl element = (AbstractElementImpl)createTestablePAPIElement();
try {
element.elementStart(requestContext, gAttributes);
pageContext.setCurrentElement(element);
menuItemElement.elementStart(requestContext, attributes);
} catch (PAPIException papE) {
fail(papE.toString());
}
// Cast the element to a ProtocolAttributesContainer and get the protocol attributes