@Test public void testDump() throws IOException { ByteArrayOutputStream bout = new ByteArrayOutputStream(); PrintStream ps = new PrintStream(bout, false, StandardCharsets.UTF_8.name()); dict.dump(ps); ByteArrayInputStream bin = new ByteArrayInputStream(bout.toByteArray()); BufferedReader reader = new BufferedReader(new InputStreamReader(bin, StandardCharsets.UTF_8)); String output = reader.readLine(); bout.close(); bin.close(); ps.close(); reader.close(); assertEquals( "TimeStrDictionary supporting from 1970-01-01 00:00:00 to 2038/01/19 03:14:07 (does not support millisecond)", output); }
@Override public void dump(PrintStream out) { out.println(this.toString()); }
TimeStrDictionary extends Dictionary<String> { @Override public void dump(PrintStream out) { out.println(this.toString()); } }
TimeStrDictionary extends Dictionary<String> { @Override public void dump(PrintStream out) { out.println(this.toString()); }  }
TimeStrDictionary extends Dictionary<String> { @Override public void dump(PrintStream out) { out.println(this.toString()); }  @Override int getMinId(); @Override int getMaxId(); @Override int getSizeOfId(); @Override int getSizeOfValue(); @Override void dump(PrintStream out); @Override String toString(); @Override int hashCode(); @Override boolean equals(Object o); @Override boolean contains(Dictionary<?> other); @Override void write(DataOutput out); @Override void readFields(DataInput in); }
TimeStrDictionary extends Dictionary<String> { @Override public void dump(PrintStream out) { out.println(this.toString()); }  @Override int getMinId(); @Override int getMaxId(); @Override int getSizeOfId(); @Override int getSizeOfValue(); @Override void dump(PrintStream out); @Override String toString(); @Override int hashCode(); @Override boolean equals(Object o); @Override boolean contains(Dictionary<?> other); @Override void write(DataOutput out); @Override void readFields(DataInput in);  }