added throws IOException to View
added test support for asserting response written
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user