JSONCodeTableWriter implements VCDiffCodeTableWriter<Appendable> { public void finishEncoding(Appendable out) throws IOException { if (outputCalled) { out.append(']'); } } JSONCodeTableWriter(); void init(int dictionarySize); void add(final byte[] data, final int offset, final int length); void addChecksum(int checksum); void copy(int offset, int size); void finishEncoding(Appendable out); void output(Appendable out); void run(int size, byte b); @SuppressWarnings("deprecation") void writeHeader(Appendable out, EnumSet<VCDiffFormatExtension> formatExtensions);  }
@Test public void nullTest() throws IOException { coder_.finishEncoding(writer); assertEquals("", writer.toString()); }