public class JarFileTest
extends TestCase
Constructor and Description |
---|
JarFileTest() |
Modifier and Type | Method and Description |
---|---|
byte[] |
getAllBytesFromStream(InputStream is) |
protected void |
setUp() |
void |
test_close() |
void |
test_ConstructorLjava_io_File()
java.util.jar.JarFile#JarFile(java.io.File)
|
void |
test_ConstructorLjava_io_FileZ()
java.util.jar.JarFile#JarFile(java.io.File, boolean)
|
void |
test_ConstructorLjava_io_FileZI()
java.util.jar.JarFile#JarFile(java.io.File, boolean, int)
|
void |
test_ConstructorLjava_lang_String()
java.util.jar.JarFile#JarFile(java.lang.String)
|
void |
test_ConstructorLjava_lang_StringZ()
java.util.jar.JarFile#JarFile(java.lang.String, boolean)
|
void |
test_entries()
java.util.jar.JarFile#entries()
|
void |
test_entries2() |
void |
test_getEntryLjava_lang_String() |
void |
test_getInputStreamLjava_util_jar_JarEntry_subtest0()
java.util.jar.JarFile#getInputStream(java.util.zip.ZipEntry)
|
void |
test_getInputStreamLjava_util_jar_JarEntry() |
void |
test_getJarEntryLjava_lang_String() |
void |
test_getManifest()
java.util.jar.JarFile#getManifest()
|
void |
test_Inserted_Entry_Manifest_with_DigestCode() |
void |
test_Jar_created_before_java_5() |
void |
test_JarFile_InsertEntry_in_Manifest_Jar() |
void |
test_JarFile_Integrate_Jar() |
void |
test_JarFile_Modified_Class() |
void |
test_JarFile_Modified_Manifest_EntryAttributes() |
void |
test_JarFile_Modified_Manifest_MainAttributes() |
void |
test_JarFile_Modified_SF_EntryAttributes() |
void |
testConstructor_file()
Constructs JarFile object.
|
void |
testGetJarEntry()
java.util.jar.JarFile#getJarEntry(java.lang.String)
|
void |
testJarVerificationEmptyEntry()
The jar is intact, but the entry object is modified.
|
void |
testJarVerificationModifiedEntry()
The jar is intact, but the entry object is modified.
|
public byte[] getAllBytesFromStream(InputStream is) throws IOException
IOException
protected void setUp()
public void test_ConstructorLjava_io_File()
public void test_ConstructorLjava_lang_String()
public void test_ConstructorLjava_lang_StringZ()
public void test_ConstructorLjava_io_FileZ()
public void test_ConstructorLjava_io_FileZI()
public void testConstructor_file() throws IOException
IOException
public void test_entries() throws Exception
Exception
public void test_getEntryLjava_lang_String() throws IOException
IOException
- java.util.jar.JarFile#getJarEntry(java.lang.String)public void test_getJarEntryLjava_lang_String() throws IOException
IOException
- java.util.jar.JarFile#getJarEntry(java.lang.String)public void testGetJarEntry() throws Exception
Exception
public void test_getManifest()
public void test_getInputStreamLjava_util_jar_JarEntry_subtest0()
public void test_Jar_created_before_java_5() throws IOException
IOException
public void test_JarFile_Integrate_Jar() throws IOException
IOException
public void testJarVerificationModifiedEntry() throws IOException
IOException
public void test_JarFile_InsertEntry_in_Manifest_Jar() throws IOException
IOException
public void test_Inserted_Entry_Manifest_with_DigestCode() throws IOException
IOException
public void test_JarFile_Modified_Class() throws IOException
IOException
public void test_JarFile_Modified_Manifest_MainAttributes() throws IOException
IOException
public void test_JarFile_Modified_Manifest_EntryAttributes() throws IOException
IOException
public void test_JarFile_Modified_SF_EntryAttributes() throws IOException
IOException
public void test_close() throws IOException
IOException
public void test_getInputStreamLjava_util_jar_JarEntry() throws IOException
IOException
- java.util.jar.JarFile#getInputStream(java.util.zip.ZipEntry)public void testJarVerificationEmptyEntry() throws IOException
IOException