Created
August 2, 2020 22:22
-
-
Save andrealaforgia/1db24dc530343af2c0b3a27f714ee6b2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package tdd.huffman; | |
import org.junit.jupiter.api.Test; | |
import java.io.ByteArrayInputStream; | |
import java.io.ByteArrayOutputStream; | |
import java.io.IOException; | |
import static org.assertj.core.api.Assertions.assertThat; | |
public class HuffmanCompressionIT { | |
... | |
private final HuffmanCompressor huffmanCompressor = new HuffmanCompressor( | |
new SymbolWeightMapBuilder(), | |
new HuffmanTreeBuilder(), | |
new HuffmanTreeSerializer() | |
); | |
private final HuffmanDecompressor huffmanDecompressor = new HuffmanDecompressor( | |
new HuffmanTreeDeserializer() | |
); | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment