DefaultContext extends Writer implements Context { public String dump(Object object) { return dump(object, true, true); } DefaultContext(); void write(int c); void write(char[] cbuf, int off, int len); void flush(); void close(); abstract void print(Object obj); void print(Date date); void print(ReadableInstant instant); void print(Number n); void print(int n); void print(float n); void print(long n); void print(double n); String toString(Object obj); String toString(String str); String toString(Date date); String toString(ReadableInstant instant); String toString(Number n); String toString(int n); String toString(float n); String toString(long n); String toString(double n); String dump(Object object); String dump(Object object, boolean recursive); String dump(Object object, boolean recursive, boolean format); void setLocale(Locale locale); void setLocale(String language, String country); void setLocale(String language, String country, String variant); java.util.Locale getLocale(); Locale[] getAvailableLocales(); void nullFormat(String format); String getNullFormat(); void dateFormat(String format); void dateFormat(String format, String timeZoneID); String getDateFormat(); String getDateFormatTimeZone(); TimeZone[] getAvailableTimeZones(); void numberFormat(String format); void numberFormat(String format, String infinity, String NaN); String getNumberFormat(); String getNumberFormatInfinity(); String getNumberFormatNaN();  }
@Test public void testDump() { dump("null", null); dump("string", "test"); dump("date", new Date()); dump("long", Long.valueOf(3)); dump("integer", Integer.valueOf(5)); dump("double", Double.valueOf(235.23)); dump("simple", new DumperSimple()); dump("inheritance", new DumperInheritance()); dump("advanced", new DumperAdvanced()); dump("composite", new DumperComposite()); }