File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
src/test/java/com/stringcompressor Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -98,7 +98,7 @@ public void invalidCharCompressTest() {
9898 @ Test
9999 public void compressDecompressSmallStringTest () {
100100 final AsciiCompressor compressor = new FiveBitAsciiCompressor (true );
101- compressor .preserveOriginal = true ;
101+ compressor .setPreserveOriginal ( true ) ;
102102 for (int length = 0 ; length <= 100 ; length ++)
103103 for (int i = 0 ; i <= 500000 ; i ++) {
104104 final byte [] str = generateRandomString (length , DEFAULT_5BIT_CHARSET );
@@ -111,7 +111,7 @@ public void compressDecompressSmallStringTest() {
111111 @ Test
112112 public void compressDecompressBigStringTest () {
113113 final AsciiCompressor compressor = new FiveBitAsciiCompressor (true );
114- compressor .preserveOriginal = true ;
114+ compressor .setPreserveOriginal ( true ) ;
115115 for (int length = 2000 ; length <= 3000 ; length ++)
116116 for (int i = 0 ; i <= 10000 ; i ++) {
117117 final byte [] str = generateRandomString (length , DEFAULT_5BIT_CHARSET );
Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ public void invalidCharCompressTest() {
9090 @ Test
9191 public void compressDecompressSmallStringTest () {
9292 final AsciiCompressor compressor = new FourBitAsciiCompressor (true );
93- compressor .preserveOriginal = true ;
93+ compressor .setPreserveOriginal ( true ) ;
9494 for (int length = 0 ; length <= 100 ; length ++)
9595 for (int i = 0 ; i <= 500000 ; i ++) {
9696 final byte [] str = generateRandomString (length , DEFAULT_4BIT_CHARSET );
@@ -103,7 +103,7 @@ public void compressDecompressSmallStringTest() {
103103 @ Test
104104 public void compressDecompressBigStringTest () {
105105 final AsciiCompressor compressor = new FourBitAsciiCompressor (true );
106- compressor .preserveOriginal = true ;
106+ compressor .setPreserveOriginal ( true ) ;
107107 for (int length = 2000 ; length <= 3000 ; length ++)
108108 for (int i = 0 ; i <= 10000 ; i ++) {
109109 final byte [] str = generateRandomString (length , DEFAULT_4BIT_CHARSET );
Original file line number Diff line number Diff line change @@ -98,7 +98,7 @@ public void invalidCharCompressTest() {
9898 @ Test
9999 public void compressDecompressSmallStringTest () {
100100 final AsciiCompressor compressor = new SixBitAsciiCompressor (true );
101- compressor .preserveOriginal = true ;
101+ compressor .setPreserveOriginal ( true ) ;
102102 for (int length = 0 ; length <= 100 ; length ++)
103103 for (int i = 0 ; i <= 500000 ; i ++) {
104104 final byte [] str = generateRandomString (length , DEFAULT_6BIT_CHARSET );
@@ -111,7 +111,7 @@ public void compressDecompressSmallStringTest() {
111111 @ Test
112112 public void compressDecompressBigStringTest () {
113113 final AsciiCompressor compressor = new SixBitAsciiCompressor (true );
114- compressor .preserveOriginal = true ;
114+ compressor .setPreserveOriginal ( true ) ;
115115 for (int length = 2000 ; length <= 3000 ; length ++)
116116 for (int i = 0 ; i <= 10000 ; i ++) {
117117 final byte [] str = generateRandomString (length , DEFAULT_6BIT_CHARSET );
You can’t perform that action at this time.
0 commit comments