use of com.android.repository.api.LocalPackage in project android by JetBrains.
the class PatchInstallerUtilTest method noLatestPatcher.
@Test
public void noLatestPatcher() throws Exception {
List<LocalPackage> local = ImmutableList.of(new FakeLocalPackage("foo"));
RepositoryPackages packages = new RepositoryPackages(local, ImmutableList.of());
FakeRepoManager mgr = new FakeRepoManager(new File("/sdk"), packages);
LocalPackage patcher = PatchInstallerUtil.getLatestPatcher(mgr);
assertNull(patcher);
}
Aggregations