* for the com.volantis.mcs.protocols.VolantisProtocol class.
*
* NOTE: Close method removed.
*/
public void testWriteOpenForm() throws Exception {
final FormAttributes attributes =
(FormAttributes) ProtocolIntegrationTestHelper.
provideAttributes(FormAttributes.class);
final VolantisProtocol protocol = getProtocol();
MethodInvoker invoker = new MethodInvoker() {
public void invoke() throws Exception {
if (protocol instanceof DOMProtocol) {
MarinerPageContext context = protocol.getMarinerPageContext();
FormInstance formInstance = (FormInstance) context.
getFormatInstance(attributes.getForm(), NDimensionalIndex.ZERO_DIMENSIONS);
((DOMOutputBuffer) formInstance.getContentBuffer(true)).
saveInsertionPoint();
}
protocol.writeOpenForm(attributes);
protocol.writeCloseForm(attributes);