From 4db78d81a0cc41a3909d2860c139babe1ff9eac0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Tue, 5 Nov 2013 07:46:21 +0100 Subject: [PATCH] Mock Core.getSones(). --- src/test/java/net/pterodactylus/sone/data/Mocks.java | 6 ++++++ 1 file changed, 6 insertions(+) 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 { -- 2.7.4