TttdChunker extends Chunker { @Override public String toString() { return name; } TttdChunker(int Tmin, int Tmax, int D, int Ddash, int windowSize);  TttdChunker(int Tmin, int Tmax, int D, int Ddash, int windowSize, String digestAlg);  TttdChunker(int avgChunkSize);  TttdChunker(int avgChunkSize, int windowSize, String digestAlg, String fingerprintAlg);  TttdChunker(int Tmin, int Tmax, int D, int Ddash, int windowSize, String digestAlg, String fingerprintAlg); private  TttdChunker(int Tmin, int Tmax, int D, int Ddash, int windowSize, String digestAlg, String fingerprintAlg, String name); @Override ChunkEnumeration createChunks(File file); @Override String getChecksumAlgorithm(); @Override String toString(); static final int DEFAULT_WINDOW_SIZE; static final String DEFAULT_DIGEST_ALG; static final String DEFAULT_FINGERPRINT_ALG; }
@Test public void testStringSerialization() { final int CHUNK_SIZE = 512*1024; Chunker chunker = new TttdChunker(CHUNK_SIZE); assertEquals("Other toString() result expected.", "TTTD-"+CHUNK_SIZE+"-"+TttdChunker.DEFAULT_DIGEST_ALG+"-"+TttdChunker.DEFAULT_FINGERPRINT_ALG, chunker.toString()); }