From: David ‘Bombe’ Roden Date: Tue, 29 Oct 2013 06:09:11 +0000 (+0100) Subject: Mock Sone.toString() for nicer debug output. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=547687357844ffbef9aa28f9fed9d5136fef0efe;p=Sone.git Mock Sone.toString() for nicer debug output. --- diff --git a/src/test/java/net/pterodactylus/sone/data/Mocks.java b/src/test/java/net/pterodactylus/sone/data/Mocks.java index dd5cf69..d67a816 100644 --- a/src/test/java/net/pterodactylus/sone/data/Mocks.java +++ b/src/test/java/net/pterodactylus/sone/data/Mocks.java @@ -105,6 +105,7 @@ public class Mocks { return from(TIME_COMPARATOR).sortedCopy(sonePosts.get(sone)); } }); + when(sone.toString()).thenReturn(String.format("Sone[%s]", id)); } public Post mockPost(Sone sone, String postId) {