use of brut.androlib.meta.MetaInfo in project Apktool by iBotPeaches.
the class MissingVersionManifestTest method missingVersionParsesCorrectlyTest.
@Test
public void missingVersionParsesCorrectlyTest() throws BrutException, IOException {
String apk = "issue1264.apk";
// decode issue1264.apk
ApkDecoder apkDecoder = new ApkDecoder(new File(sTmpDir + File.separator + apk));
ExtFile decodedApk = new ExtFile(sTmpDir + File.separator + apk + ".out");
apkDecoder.setOutDir(new File(sTmpDir + File.separator + apk + ".out"));
apkDecoder.decode();
MetaInfo metaInfo = new Androlib().readMetaFile(decodedApk);
assertEquals(null, metaInfo.versionInfo.versionName);
}