- private final TemplateContext templateContext = new TemplateContext();
- private final FreenetRequest freenetRequest = mock(FreenetRequest.class);
- private final HTTPRequest httpRequest = mock(HTTPRequest.class);
-
- @Before
- public void setupWebInterface() {
- when(webInterface.getNotifications(any(Sone.class))).thenReturn(Collections.<Notification>emptyList());
- }
-
- @Before
- public void setupHttpRequest() {
- when(freenetRequest.getHttpRequest()).thenReturn(httpRequest);
- }