refactor: replace statement lambda with expression lambda

This commit is contained in:
broDom
2017-07-03 17:11:32 +02:00
parent 524a5dbb0a
commit b73040771a
2 changed files with 5 additions and 8 deletions

View File

@@ -293,9 +293,7 @@ public class DefaultRepositoryManagerTest extends ManagerTestBase<Repository, Re
keys.push("p42");
keys.push("hof");
when(keyGenerator.createKey()).then((InvocationOnMock invocation) -> {
return keys.pop();
});
when(keyGenerator.createKey()).then((InvocationOnMock invocation) -> keys.pop());
// create repository manager
RepositoryManager repositoryManager = createRepositoryManager(false, keyGenerator);