Mock Sone.toString() for nicer debug output.
[Sone.git] / 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) {