Skip to content

Commit e56083e

Browse files
committed
oli
1 parent 8a034db commit e56083e

File tree

1 file changed

+31
-31
lines changed
  • src/test/java/edu/uniandes/tsdl/mutapk/hashfunction/sha3

1 file changed

+31
-31
lines changed

src/test/java/edu/uniandes/tsdl/mutapk/hashfunction/sha3/Sha3Test.java

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -11,36 +11,36 @@
1111
public class Sha3Test {
1212

1313

14-
String apkAbsolutePath = "C:\\Users\\PERSONAL\\git\\MutAPK\\test\\temp";
15-
File manifest = new File(apkAbsolutePath + File.separator + "AndroidManifest.xml");
16-
File smali = new File(apkAbsolutePath + File.separator + "smali");
17-
File resource = new File(apkAbsolutePath + File.separator + "res");
18-
19-
@Test
20-
public void equalHashTest() throws FileNotFoundException, IOException {
21-
String hashManifest = Sha3.sha512FileSeparte(manifest);
22-
String hashSmali = Sha3.sha512FileSeparte(smali);
23-
String hashResource = Sha3.sha512FileSeparte(resource);
24-
25-
String hashManifestCompare = "";
26-
String hashSmaliCompare = "";
27-
String hashResourceCompare = "";
28-
29-
for (int i = 0; i < 10; i++) {
30-
hashManifestCompare = Sha3.sha512FileSeparte(manifest);
31-
hashSmaliCompare = Sha3.sha512FileSeparte(smali);
32-
hashResourceCompare = Sha3.sha512FileSeparte(resource);
33-
34-
if(!hashManifest.equals(hashManifestCompare)) {
35-
fail("They should be always equals");
36-
}
37-
if(!hashSmali.equals(hashSmaliCompare)) {
38-
fail("They should be always equals");
39-
}
40-
if(!hashResource.equals(hashResourceCompare)) {
41-
fail("They should be always equals");
42-
}
43-
}
44-
}
14+
// String apkAbsolutePath = "C:\\Users\\PERSONAL\\git\\MutAPK\\test\\temp";
15+
// File manifest = new File(apkAbsolutePath + File.separator + "AndroidManifest.xml");
16+
// File smali = new File(apkAbsolutePath + File.separator + "smali");
17+
// File resource = new File(apkAbsolutePath + File.separator + "res");
18+
//
19+
// @Test
20+
// public void equalHashTest() throws FileNotFoundException, IOException {
21+
// String hashManifest = Sha3.sha512FileSeparte(manifest);
22+
// String hashSmali = Sha3.sha512FileSeparte(smali);
23+
// String hashResource = Sha3.sha512FileSeparte(resource);
24+
//
25+
// String hashManifestCompare = "";
26+
// String hashSmaliCompare = "";
27+
// String hashResourceCompare = "";
28+
//
29+
// for (int i = 0; i < 10; i++) {
30+
// hashManifestCompare = Sha3.sha512FileSeparte(manifest);
31+
// hashSmaliCompare = Sha3.sha512FileSeparte(smali);
32+
// hashResourceCompare = Sha3.sha512FileSeparte(resource);
33+
//
34+
// if(!hashManifest.equals(hashManifestCompare)) {
35+
// fail("They should be always equals");
36+
// }
37+
// if(!hashSmali.equals(hashSmaliCompare)) {
38+
// fail("They should be always equals");
39+
// }
40+
// if(!hashResource.equals(hashResourceCompare)) {
41+
// fail("They should be always equals");
42+
// }
43+
// }
44+
// }
4545

4646
}

0 commit comments

Comments
 (0)