added throws IOException to View

added test support for asserting response written
This commit is contained in:
Keith Donald
2008-03-11 21:46:53 +00:00
parent ab39879ea5
commit f498616fd1
10 changed files with 106 additions and 67 deletions

View File

@@ -81,7 +81,7 @@ public class JsfViewTests extends TestCase {
jsfMock.tearDown();
}
public final void testRender() {
public final void testRender() throws IOException {
EasyMock.expect(requestContext.getExternalContext()).andStubReturn(new MockExternalContext());
EasyMock.expect(requestContext.getFlashScope()).andStubReturn(flashMap);
@@ -99,7 +99,7 @@ public class JsfViewTests extends TestCase {
assertNull("The FacesContext was not released", FacesContext.getCurrentInstance());
}
public final void testRenderException() {
public final void testRenderException() throws IOException {
EasyMock.expect(requestContext.getExternalContext()).andStubReturn(new MockExternalContext());
EasyMock.expect(requestContext.getFlashScope()).andStubReturn(flashMap);