VCDiffCodeTableWriterImpl implements com.davidehrmann.vcdiff.VCDiffCodeTableWriter<OutputStream> { public void run(int size, byte b) { encodeInstruction(VCDiffCodeTableData.VCD_RUN, size); dataForAddAndRun.put(b); targetLength += size; } VCDiffCodeTableWriterImpl(boolean interleaved);   VCDiffCodeTableWriterImpl(boolean interleaved, short nearCacheSize, short sameCacheSize, VCDiffCodeTableData codeTableData, short maxMode); void init(int dictionarySize); void add(byte[] data, int offset, int length); void addChecksum(int checksum); void copy(int offset, int size); void finishEncoding(OutputStream out); int getDeltaWindowSize(); void output(OutputStream out); void run(int size, byte b); void writeHeader(OutputStream out, EnumSet<VCDiffFormatExtension> formatExtensions); int targetLength();  }
@Test(expected = IllegalStateException.class) public void WriterRunWithoutInit() { standard_writer.run(3, (byte) 'a'); }