Skip to content

Commit

Permalink
#432 Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
srikanth-lingala committed Jun 3, 2022
1 parent ecd1823 commit 4006190
Showing 1 changed file with 4 additions and 15 deletions.
19 changes: 4 additions & 15 deletions src/test/java/net/lingala/zip4j/headers/HeaderReaderIT.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,7 @@
import net.lingala.zip4j.AbstractIT;
import net.lingala.zip4j.exception.ZipException;
import net.lingala.zip4j.io.outputstream.SplitOutputStream;
import net.lingala.zip4j.model.CentralDirectory;
import net.lingala.zip4j.model.EndOfCentralDirectoryRecord;
import net.lingala.zip4j.model.FileHeader;
import net.lingala.zip4j.model.LocalFileHeader;
import net.lingala.zip4j.model.ZipModel;
import net.lingala.zip4j.model.ZipParameters;
import net.lingala.zip4j.model.*;
import net.lingala.zip4j.model.enums.AesKeyStrength;
import net.lingala.zip4j.model.enums.EncryptionMethod;
import net.lingala.zip4j.model.enums.RandomAccessFileMode;
Expand All @@ -17,13 +12,7 @@
import net.lingala.zip4j.util.RawIO;
import org.junit.Test;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.RandomAccessFile;
import java.io.*;
import java.nio.charset.Charset;
import java.util.ArrayList;
import java.util.List;
Expand Down Expand Up @@ -144,9 +133,9 @@ public void testReadAllWithoutUtf8FlagDecodesWithoutCharsetFlagForJapaneseCharac
}

@Test
public void testReadAllWithoutUtf8FlagAndWithoutCharsetForJapaneseCharactersMatches()
public void testReadAllWithoutUtf8FlagAndWithoutCharsetForJapaneseCharactersDoesNotMatch()
throws IOException {
testWithoutUtf8FileName("公ゃ的年社", "育ざどろめ", true, true, null);
testWithoutUtf8FileName("公ゃ的年社", "育ざどろめ", false, true, null);
}

@Test
Expand Down

0 comments on commit 4006190

Please sign in to comment.