Add unit-test (no unicode)

- #1369
This commit is contained in:
Connor Tumbleson 2016-12-02 14:28:06 -05:00
parent 2a3d4027e3
commit 5798c9200f
2 changed files with 15 additions and 0 deletions

View File

@ -373,6 +373,16 @@ public class BuildAndDecodeTest {
compareUnknownFiles(); compareUnknownFiles();
} }
@Test
public void fileAssetTest() throws BrutException, IOException {
compareAssetsFolder("txt");
}
@Test
public void unicodeAssetTest() throws BrutException, IOException {
// failure using (unicode)
}
@Test @Test
public void multipleDexTest() throws BrutException, IOException { public void multipleDexTest() throws BrutException, IOException {
compareBinaryFolder("/smali_classes2", false); compareBinaryFolder("/smali_classes2", false);
@ -434,6 +444,10 @@ public class BuildAndDecodeTest {
compareBinaryFolder(File.separatorChar + path, false); compareBinaryFolder(File.separatorChar + path, false);
} }
private void compareAssetsFolder(String path) throws BrutException, IOException {
compareBinaryFolder(File.separatorChar + "assets" + File.separatorChar + path, false);
}
private void compareValuesFiles(String path) throws BrutException { private void compareValuesFiles(String path) throws BrutException {
compareXmlFiles("res/" + path, new ElementNameAndAttributeQualifier("name")); compareXmlFiles("res/" + path, new ElementNameAndAttributeQualifier("name"));
} }

View File

@ -0,0 +1 @@
This is an empty file.