mirror of
https://github.com/pgpainless/pgpainless.git
synced 2025-09-12 11:49:38 +02:00
Remove unused CRCingArmoredInputStreamWrapper class
This commit is contained in:
parent
620c1fc96a
commit
3bb25a62a2
3 changed files with 7 additions and 184 deletions
|
@ -11,8 +11,6 @@ import java.io.ByteArrayInputStream;
|
|||
import java.io.IOException;
|
||||
|
||||
import static org.junit.jupiter.api.Assertions.assertNotNull;
|
||||
import static org.junit.jupiter.api.Assertions.assertSame;
|
||||
import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||
|
||||
public class ArmoredInputStreamFactoryTest {
|
||||
|
||||
|
@ -30,22 +28,4 @@ public class ArmoredInputStreamFactoryTest {
|
|||
ArmoredInputStream armorIn = ArmoredInputStreamFactory.get(inputStream);
|
||||
assertNotNull(armorIn);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testGet_willWrapArmoredInputStreamWithCRC() throws IOException {
|
||||
ByteArrayInputStream inputStream = new ByteArrayInputStream(armored.getBytes());
|
||||
ArmoredInputStream plainArmor = new ArmoredInputStream(inputStream);
|
||||
|
||||
ArmoredInputStream armor = ArmoredInputStreamFactory.get(plainArmor);
|
||||
assertTrue(armor instanceof CRCingArmoredInputStreamWrapper);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testGet_onCRCinArmoredInputStream() throws IOException {
|
||||
ByteArrayInputStream inputStream = new ByteArrayInputStream(armored.getBytes());
|
||||
CRCingArmoredInputStreamWrapper crc = new CRCingArmoredInputStreamWrapper(new ArmoredInputStream(inputStream));
|
||||
|
||||
ArmoredInputStream armor = ArmoredInputStreamFactory.get(crc);
|
||||
assertSame(crc, armor);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue