-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
12 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,15 @@ | ||
import org.junit.jupiter.api.Test; | ||
import pdd.vm.mw.MwBin; | ||
|
||
import java.io.File; | ||
import java.io.IOException; | ||
import java.io.InputStream; | ||
|
||
public class VmTest { | ||
@Test | ||
public void testParse() throws IOException { | ||
// final FieldRefTypeSet fieldSet = new FieldRefTypeSet(); | ||
// fieldSet.loadFromAndroidSdk(); | ||
final InputStream input = getClass().getResourceAsStream("/mw1.bin"); | ||
final File file = new File("/home/mao/mytest/alive.jar"); | ||
if (!file.getParentFile().exists()) file.getParentFile().mkdirs(); | ||
MwBin.toClassesJar(input, file); | ||
// final InputStream input = getClass().getResourceAsStream("/mw1.bin"); | ||
// final File file = new File("/home/mao/mytest/alive.jar"); | ||
// if (!file.getParentFile().exists()) file.getParentFile().mkdirs(); | ||
// MwBin.toClassesJar(input, file); | ||
} | ||
} |
Binary file not shown.