@@ -19,39 +19,39 @@ public class SixBitAsciiCompressorTest extends BaseTest {
1919
2020 @ Test
2121 public void validCustomCharsetTest () {
22- byte [] customSupportedCharset = new byte []{
22+ byte [] customCharset = new byte []{
2323 0 , 1 , 2 , 3 , 4 , 6 , 6 , 7 , 8 , 9 , 10 , 11 , 12 , 13 , 14 , 16 , 16 , 17 , 18 , 19 , 20 , 21 , 22 , 23 , 24 , 26 , 26 , 27 , 28 , 29 , 30 , 31 ,
2424 32 , 33 , 34 , 36 , 36 , 37 , 38 , 39 , 40 , 41 , 42 , 43 , 44 , 46 , 46 , 47 , 48 , 49 , 50 , 51 , 52 , 53 , 54 , 56 , 56 , 57 , 58 , 59 , 60 , 61 , 62 , 63 };
25- new SixBitAsciiCompressor (customSupportedCharset );
25+ new SixBitAsciiCompressor (customCharset );
2626 }
2727
2828 @ Test
2929 public void excessCustomCharsetTest () {
30- byte [] customSupportedCharset = new byte []{
30+ byte [] customCharset = new byte []{
3131 0 , 1 , 2 , 3 , 4 , 6 , 6 , 7 , 8 , 9 , 10 , 11 , 12 , 13 , 14 , 16 , 16 , 17 , 18 , 19 , 20 , 21 , 22 , 23 , 24 , 26 , 26 , 27 , 28 , 29 , 30 , 31 ,
3232 32 , 33 , 34 , 36 , 36 , 37 , 38 , 39 , 40 , 41 , 42 , 43 , 44 , 46 , 46 , 47 , 48 , 49 , 50 , 51 , 52 , 53 , 54 , 56 , 56 , 57 , 58 , 59 , 60 , 61 , 62 , 63 , 64 };
3333 CharacterNotSupportedException e = assertThrows (
34- CharacterNotSupportedException .class , () -> new SixBitAsciiCompressor (customSupportedCharset ));
34+ CharacterNotSupportedException .class , () -> new SixBitAsciiCompressor (customCharset ));
3535 assertEquals ("6-bit compressor requires a set of exactly 64 characters. Currently 65." , e .getMessage ());
3636 }
3737
3838 @ Test
3939 public void missingCustomCharsetTest () {
40- byte [] customSupportedCharset = new byte []{
40+ byte [] customCharset = new byte []{
4141 0 , 1 , 2 , 3 , 4 , 6 , 6 , 7 , 8 , 9 , 10 , 11 , 12 , 13 , 14 , 16 , 16 , 17 , 18 , 19 , 20 , 21 , 22 , 23 , 24 , 26 , 26 , 27 , 28 , 29 , 30 , 31 ,
4242 32 , 33 , 34 , 36 , 36 , 37 , 38 , 39 , 40 , 41 , 42 , 43 , 44 , 46 , 46 , 47 , 48 , 49 , 50 , 51 , 52 , 53 , 54 , 56 , 56 , 57 , 58 , 59 , 60 , 61 , 62 };
4343 CharacterNotSupportedException e = assertThrows (
44- CharacterNotSupportedException .class , () -> new SixBitAsciiCompressor (customSupportedCharset ));
44+ CharacterNotSupportedException .class , () -> new SixBitAsciiCompressor (customCharset ));
4545 assertEquals ("6-bit compressor requires a set of exactly 64 characters. Currently 63." , e .getMessage ());
4646 }
4747
4848 @ Test
4949 public void invalidCustomCharsetTest () {
50- byte [] customSupportedCharset = new byte []{
50+ byte [] customCharset = new byte []{
5151 -1 , 0 , 1 , 2 , 3 , 4 , 6 , 6 , 7 , 8 , 9 , 10 , 11 , 12 , 13 , 14 , 16 , 16 , 17 , 18 , 19 , 20 , 21 , 22 , 23 , 24 , 26 , 26 , 27 , 28 , 29 , 30 , 31 ,
5252 32 , 33 , 34 , 36 , 36 , 37 , 38 , 39 , 40 , 41 , 42 , 43 , 44 , 46 , 46 , 47 , 48 , 49 , 50 , 51 , 52 , 53 , 54 , 56 , 56 , 57 , 58 , 59 , 60 , 61 , 62 };
5353 CharacterNotSupportedException e = assertThrows (
54- CharacterNotSupportedException .class , () -> new SixBitAsciiCompressor (customSupportedCharset ));
54+ CharacterNotSupportedException .class , () -> new SixBitAsciiCompressor (customCharset ));
5555 assertEquals ("Invalid character found in the custom supported charset: '\uFFFF ' (code point -1)" , e .getMessage ());
5656 }
5757
0 commit comments