[TFUI] Re: [agile-testing] Testing PDFs
Phlip <[email protected]> Fri, 1 Sep 2006 03:34:33 -0700
| Newsgroups | gmane.comp.programming.test-first-user-interfaces |
|---|---|
| Message-ID | <[email protected]> |
> Arrowood, Paul (ELS-STL) wrote:
>
> > Has anyone had any experience testing 'generating to PDFs'?
I forgot the 3rd technique:
- make the renderer interface pluggable. That means you
have two modules - the one that decides what to print,
and the one that converts these decisions to PDF.
The pluggable renderer could behave like a GDI
device context. Then build a Mock Renderer who
can test that the correct print decisions were made.
This technique cannot test the PDF module itself,
yet it can test the part that ought to change more often.
That technique is a form of "Mock Graphics". Google for that, because
JUnit has literature on it.
--
Phlip
http://c2.com/cgi/wiki?ZeekLand <-- NOT a blog!!
To unsubscribe, email:
TestFirstUserInterfaces-unsubscribe-hHKSG33TihhbjbujkaE4pw@public.gmane.org
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/TestFirstUserInterfaces/
<*> To unsubscribe from this group, send an email to:
TestFirstUserInterfaces-unsubscribe-hHKSG33TihhbjbujkaE4pw@public.gmane.org
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/