public void testSpatialFormatIterator() throws Exception {
privateSetUp();
MarinerRequestContext requestContext
= new TestMarinerRequestContext();
TestMarinerPageContext context = new TestMarinerPageContext();
context.pushRequestContext(requestContext);
protocol.setMarinerPageContext(context);
DOMOutputBuffer buffer = new TestDOMOutputBuffer();
context.setCurrentOutputBuffer(buffer);
InternalDevice d = INTERNAL_DEVICE_FACTORY.createInternalDevice(
new DefaultDevice("Netscape4", new HashMap(), null));
context.setDevice(d);
context.setDeviceName("Netscape4");
// Activate the device layout.
// Activate the device layout.
RuntimeDeviceLayout runtimeDeviceLayout1 =
RuntimeDeviceLayoutTestHelper.activate(canvasLayout);
RuntimeDeviceLayout runtimeDeviceLayout =
runtimeDeviceLayout1;
TestDeviceLayoutContext deviceLayoutContext = new TestDeviceLayoutContext();
deviceLayoutContext.setDeviceLayout(runtimeDeviceLayout);
context.pushDeviceLayoutContext(deviceLayoutContext);
protocol.writeOpenSpatialFormatIterator(
getSpatialFormatIteratorAttributes());
protocol.writeOpenSpatialFormatIteratorRow(
getSpatialFormatIteratorAttributes());