This content has been marked as final.
Show 2 replies
-
1. Re: Accessing response in SeamTest
nickarls May 12, 2008 10:23 AM (in response to nickarls)I tried something along the lines of
@Test public class ExcelTest extends SeamTest { public void testAddCell() throws Exception { new FacesRequest() { @Override protected void invokeApplication() throws Exception { Renderer.instance().render("/addcell.xhtml"); // Get the component, fetch data etc. } }.run(); } }
but run into a NPE on the Renderer instance being null. Pardon my n00bishness on the finer (any) details of Seam testing but what do you need to set up / mock yourself before you could access the renderer and components like that?
-
2. Re: Accessing response in SeamTest
pmuir May 12, 2008 6:54 PM (in response to nickarls)You could take a look at what I did to allow you to test Seam Mail - getRenderedMailMessage().