public class CompressionTest
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
(package private) static byte[] |
data1 |
(package private) static byte[] |
data2 |
(package private) static byte[] |
downlinkCompressedMultipleFrame |
(package private) static byte[] |
downlinkCompressedSingleFrame |
(package private) static int |
downlinkCompressedSingleFrame1Length |
(package private) static int |
downlinkCompressedSingleFrame2Length |
(package private) static byte[] |
uncompressedFrame1 |
(package private) static byte[] |
uncompressedFrame2 |
(package private) static byte[] |
uplinkCompressedFrame |
| Constructor and Description |
|---|
CompressionTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
downlinkCompressionMultipleCompressed()
Tests that the
CompressionSplittedInputStream reads multiple compressed messages and inflates them properly. |
void |
downlinkCompressionSingleCompressed()
Tests that the
CompressionSplittedInputStream reads single compressed messages and inflates them properly. |
void |
downlinkCompressionSplittingUncompressed()
Tests that the
CompressionSplittedInputStream reads from original underlying InputStream when data is not compressed. |
void |
uplinkCompressionSplitting()
Tests that the
CompressionSplittedOutputStream writes into an underlying OutputStream properly deflated data. |
static final byte[] data1
static final byte[] data2
static final byte[] uncompressedFrame1
static final byte[] uncompressedFrame2
static final byte[] downlinkCompressedSingleFrame
static final int downlinkCompressedSingleFrame1Length
static final int downlinkCompressedSingleFrame2Length
static final byte[] downlinkCompressedMultipleFrame
static final byte[] uplinkCompressedFrame
@Test
public void downlinkCompressionSplittingUncompressed()
throws java.lang.Exception
CompressionSplittedInputStream reads from original underlying InputStream when data is not compressed.java.lang.Exception@Test
public void downlinkCompressionSingleCompressed()
throws java.lang.Exception
CompressionSplittedInputStream reads single compressed messages and inflates them properly.java.lang.Exception@Test
public void downlinkCompressionMultipleCompressed()
throws java.lang.Exception
CompressionSplittedInputStream reads multiple compressed messages and inflates them properly.java.lang.Exception@Test
public void uplinkCompressionSplitting()
throws java.lang.Exception
CompressionSplittedOutputStream writes into an underlying OutputStream properly deflated data.java.lang.Exception