From 547687357844ffbef9aa28f9fed9d5136fef0efe Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Tue, 29 Oct 2013 07:09:11 +0100 Subject: [PATCH] Mock Sone.toString() for nicer debug output. --- src/test/java/net/pterodactylus/sone/data/Mocks.java | 1 + 1 file changed, 1 insertion(+) 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) { -- 2.7.4