Skip to content
Snippets Groups Projects
Commit c8026e83 authored by Christoph Thelen's avatar Christoph Thelen
Browse files

Build fix

parent bb649cb9
Branches
Tags
No related merge requests found
...@@ -256,7 +256,7 @@ public class StubDatabaseDao implements IDatabaseDao { ...@@ -256,7 +256,7 @@ public class StubDatabaseDao implements IDatabaseDao {
} }
@Override @Override
public List<Answer> getMyAnswers(User user, String sessionKey) { public List<Answer> getMyAnswers(User user, Session session) {
return new ArrayList<Answer>(); return new ArrayList<Answer>();
} }
......
...@@ -173,7 +173,7 @@ public class SessionServiceTest { ...@@ -173,7 +173,7 @@ public class SessionServiceTest {
final IDatabaseDao mockDatabase = mock(IDatabaseDao.class); final IDatabaseDao mockDatabase = mock(IDatabaseDao.class);
when(mockDatabase.getSkillQuestions(userService.getCurrentUser(), session)).thenReturn(Arrays.asList(q1, q2)); when(mockDatabase.getSkillQuestions(userService.getCurrentUser(), session)).thenReturn(Arrays.asList(q1, q2));
when(mockDatabase.getSession(anyString())).thenReturn(session); when(mockDatabase.getSessionFromKeyword(anyString())).thenReturn(session);
ReflectionTestUtils.setField(getTargetObject(sessionService), "databaseDao", mockDatabase); ReflectionTestUtils.setField(getTargetObject(sessionService), "databaseDao", mockDatabase);
sessionService.deleteSession(session.getKeyword()); sessionService.deleteSession(session.getKeyword());
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment