From: David ‘Bombe’ Roden Date: Tue, 5 Nov 2013 06:46:21 +0000 (+0100) Subject: Mock Core.getSones(). X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=4db78d81a0cc41a3909d2860c139babe1ff9eac0;p=Sone.git Mock Core.getSones(). --- diff --git a/src/test/java/net/pterodactylus/sone/data/Mocks.java b/src/test/java/net/pterodactylus/sone/data/Mocks.java index cbe9844..8c8c93a 100644 --- a/src/test/java/net/pterodactylus/sone/data/Mocks.java +++ b/src/test/java/net/pterodactylus/sone/data/Mocks.java @@ -70,6 +70,12 @@ public class Mocks { return (soneId == null) ? Optional.absent() : fromNullable(sones.get(soneId)); } }); + when(core.getSones()).then(new Answer>() { + @Override + public Collection answer(InvocationOnMock invocation) throws Throwable { + return sones.values(); + } + }); when(core.getLocalSones()).then(new Answer>() { @Override public Collection answer(InvocationOnMock invocation) throws Throwable {