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() {
98
98
@ Test
99
99
public void compressDecompressSmallStringTest () {
100
100
final AsciiCompressor compressor = new FiveBitAsciiCompressor (true );
101
- compressor .preserveOriginal = true ;
101
+ compressor .setPreserveOriginal ( true ) ;
102
102
for (int length = 0 ; length <= 100 ; length ++)
103
103
for (int i = 0 ; i <= 500000 ; i ++) {
104
104
final byte [] str = generateRandomString (length , DEFAULT_5BIT_CHARSET );
@@ -111,7 +111,7 @@ public void compressDecompressSmallStringTest() {
111
111
@ Test
112
112
public void compressDecompressBigStringTest () {
113
113
final AsciiCompressor compressor = new FiveBitAsciiCompressor (true );
114
- compressor .preserveOriginal = true ;
114
+ compressor .setPreserveOriginal ( true ) ;
115
115
for (int length = 2000 ; length <= 3000 ; length ++)
116
116
for (int i = 0 ; i <= 10000 ; i ++) {
117
117
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() {
90
90
@ Test
91
91
public void compressDecompressSmallStringTest () {
92
92
final AsciiCompressor compressor = new FourBitAsciiCompressor (true );
93
- compressor .preserveOriginal = true ;
93
+ compressor .setPreserveOriginal ( true ) ;
94
94
for (int length = 0 ; length <= 100 ; length ++)
95
95
for (int i = 0 ; i <= 500000 ; i ++) {
96
96
final byte [] str = generateRandomString (length , DEFAULT_4BIT_CHARSET );
@@ -103,7 +103,7 @@ public void compressDecompressSmallStringTest() {
103
103
@ Test
104
104
public void compressDecompressBigStringTest () {
105
105
final AsciiCompressor compressor = new FourBitAsciiCompressor (true );
106
- compressor .preserveOriginal = true ;
106
+ compressor .setPreserveOriginal ( true ) ;
107
107
for (int length = 2000 ; length <= 3000 ; length ++)
108
108
for (int i = 0 ; i <= 10000 ; i ++) {
109
109
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() {
98
98
@ Test
99
99
public void compressDecompressSmallStringTest () {
100
100
final AsciiCompressor compressor = new SixBitAsciiCompressor (true );
101
- compressor .preserveOriginal = true ;
101
+ compressor .setPreserveOriginal ( true ) ;
102
102
for (int length = 0 ; length <= 100 ; length ++)
103
103
for (int i = 0 ; i <= 500000 ; i ++) {
104
104
final byte [] str = generateRandomString (length , DEFAULT_6BIT_CHARSET );
@@ -111,7 +111,7 @@ public void compressDecompressSmallStringTest() {
111
111
@ Test
112
112
public void compressDecompressBigStringTest () {
113
113
final AsciiCompressor compressor = new SixBitAsciiCompressor (true );
114
- compressor .preserveOriginal = true ;
114
+ compressor .setPreserveOriginal ( true ) ;
115
115
for (int length = 2000 ; length <= 3000 ; length ++)
116
116
for (int i = 0 ; i <= 10000 ; i ++) {
117
117
final byte [] str = generateRandomString (length , DEFAULT_6BIT_CHARSET );
You can’t perform that action at this time.
0 commit comments