VoidValue { @Override public String toString() { return "-"; } VoidValue(); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString(); static final VoidValue SINGLETON; }
@Test public void testToString() throws Exception { Assert.assertEquals("-", new VoidValue().toString()); }