private const string TepResourcePkgPath3 = "/home/owner/share/res/tepresource-hashvalue03.tep";
private const string TepResourcePkgPath4 = "/home/owner/share/res/tepresource-hashvalue04.tep";
+ private const string ArchivePkgPath = "/home/owner/share/res/pkgarchivetest.tpk";
+
private EventHandler<PackageManagerEventArgs> _installProgressCallback;
private EventHandler<PackageManagerEventArgs> _updateProgressCallback;
private EventHandler<PackageManagerEventArgs> _uninstallProgressCallback;
CertCompareResultType result = PackageManager.CompareCertInfoByApplicationId(app.ApplicationId, app.ApplicationId);
Assert.IsTrue(result == CertCompareResultType.Match || result == CertCompareResultType.BothNoCert, "Certificate compare result is unmatched ({0})", app.ApplicationId);
}
+
+ [Test]
+ [Category("P1")]
+ [Description("Check if GetPackageArchive returns correct value")]
+ [Property("SPEC", "Tizen.Applications.PackageManager.GetPackageArchive M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "Ilho Kim, ilho159.kim@samsung.com")]
+ public void GetPackageArchive_RETURN_VALUE()
+ {
+ // TEST CODE
+ var archive = PackageManager.GetPackageArchive(ArchivePkgPath);
+ Assert.IsInstanceOf<PackageArchive>(archive, "GetPackageArchive should return PackageArchive");
+ Assert.AreEqual("pkgarchivetest", archive.Id, "Id of archive is not correct");
+ }
}
}