The obvious answer is "no, it's just a waste of time." But for many classes, primarily for value wrappers, toString should be overloaded and provide more information, just org.package.ClassName@2be2befa
So my proposition test for toString:
@Test public final void testToString() { assertFalse(new MyClass().toString().contains("@")); }
It also increases test convention, which is at least not bad.
Avrdragon
source share