1
0
Fork 0
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:
Paul Schaub 2023-11-13 14:09:42 +01:00
parent 620c1fc96a
commit 3bb25a62a2
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311
3 changed files with 7 additions and 184 deletions

View file

@ -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);
}
}