After much code-wrangling and teeth-gnashing, I finally got a Pluto portal
driver request to complete in a unit test environment based on ServletUnit.

More details can be found here:
  http://wiki.oss-watch.ac.uk/PlutoNotes
(see section "Creating Pluto 1.1 unit tests")

I have yet to write some serious tests to confirm that the rendered data
contains some sensible content -- so far, all I do is confirm that the request
completes without, e.g.:
[[
WebRequest request = new PostMethodWebRequest
        ("http://localhost:8080/pluto/portal/";);
    WebResponse response = client.getResponse(request);
    assertNotNull("No response received", response);
]]

Thanbks to everyone who helped me get this far.

#g

-- 
Graham Klyne
Research Technology Service
Oxford University Computing Services

Reply via email to