From: David ‘Bombe’ Roden Date: Tue, 5 Nov 2013 21:09:42 +0000 (+0100) Subject: Don’t use raw Answer. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;ds=sidebyside;h=18a9bf4351d38d15cb809c91545e5819a8605d8b;p=Sone.git Don’t use raw Answer. --- diff --git a/src/test/java/net/pterodactylus/sone/data/Mocks.java b/src/test/java/net/pterodactylus/sone/data/Mocks.java index 0e8a731..4b60c1a 100644 --- a/src/test/java/net/pterodactylus/sone/data/Mocks.java +++ b/src/test/java/net/pterodactylus/sone/data/Mocks.java @@ -258,16 +258,16 @@ public class Mocks { return Ordering.from(Reply.TIME_COMPARATOR).sortedCopy(postReplies.get(post)); } }); - doAnswer(new Answer() { + doAnswer(new Answer() { @Override - public Object answer(InvocationOnMock invocation) throws Throwable { + public Void answer(InvocationOnMock invocation) throws Throwable { postLikingSones.put(post, (Sone) invocation.getArguments()[0]); return null; } }).when(post).like(Matchers.any()); - doAnswer(new Answer() { + doAnswer(new Answer() { @Override - public Object answer(InvocationOnMock invocation) throws Throwable { + public Void answer(InvocationOnMock invocation) throws Throwable { postLikingSones.remove(post, (Sone) invocation.getArguments()[0]); return null; }