Mock Sone.toString() for nicer debug output.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Tue, 29 Oct 2013 06:09:11 +0000 (07:09 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 28 Feb 2014 21:25:49 +0000 (22:25 +0100)
src/test/java/net/pterodactylus/sone/data/Mocks.java

index dd5cf69..d67a816 100644 (file)
@@ -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) {