diff options
Diffstat (limited to 'server/tests')
-rw-r--r-- | server/tests/src/com/vaadin/server/VaadinPortletServiceTests.java | 2 | ||||
-rw-r--r-- | server/tests/src/com/vaadin/server/VaadinSessionTest.java | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/server/tests/src/com/vaadin/server/VaadinPortletServiceTests.java b/server/tests/src/com/vaadin/server/VaadinPortletServiceTests.java index 0e094bfabb..38f3b85043 100644 --- a/server/tests/src/com/vaadin/server/VaadinPortletServiceTests.java +++ b/server/tests/src/com/vaadin/server/VaadinPortletServiceTests.java @@ -200,7 +200,7 @@ public class VaadinPortletServiceTests { when(mockLock.isHeldByCurrentThread()).thenReturn(true); WrappedSession emptyWrappedSession = Mockito - .mock(WrappedSession.class); + .mock(WrappedPortletSession.class); when(emptyWrappedSession.getAttribute("null.lock")).thenReturn( mockLock); VaadinRequest requestWithUIIDSet = Mockito diff --git a/server/tests/src/com/vaadin/server/VaadinSessionTest.java b/server/tests/src/com/vaadin/server/VaadinSessionTest.java index fa7e892066..4944d37856 100644 --- a/server/tests/src/com/vaadin/server/VaadinSessionTest.java +++ b/server/tests/src/com/vaadin/server/VaadinSessionTest.java @@ -93,7 +93,7 @@ public class VaadinSessionTest { }; session = new VaadinSession(mockService); - session.storeInSession(mockService, mockWrappedSession); + mockService.storeSession(session, mockWrappedSession); ui = new UI() { Page page = new Page(this, getState(false).pageState) { |