@Test public void testScopeMalformedDependencyResolve() throws Exception { ManifestProvider provider = mock(ManifestProvider.class); when(provider.tryGetManifest(ADMOB_COORDINATE, new URL(ADMOB_URL))).thenReturn(ADMOB_BROKEN_DEPENDENCY_MANIFEST); Resolver resolver = new Resolver(provider); try { assert ADMOB_COORDINATE != null; resolver.resolveAll(new SoftNameDependency[]{new SoftNameDependency(ADMOB_COORDINATE.toString())}); fail("Expected exception"); } catch (RuntimeException e) { assertThat(e).hasMessage("Archive com.github.jomof:firebase/admob:2.1.3-rev7 is missing include"); } }
@NotNull public ResolutionScope resolveAll(@NotNull SoftNameDependency[] roots) throws IOException, NoSuchAlgorithmException { ResolutionScope scope = new ResolutionScope(roots); resolveAll(scope); return scope; }
Resolver { @NotNull public ResolutionScope resolveAll(@NotNull SoftNameDependency[] roots) throws IOException, NoSuchAlgorithmException { ResolutionScope scope = new ResolutionScope(roots); resolveAll(scope); return scope; } }
Resolver { @NotNull public ResolutionScope resolveAll(@NotNull SoftNameDependency[] roots) throws IOException, NoSuchAlgorithmException { ResolutionScope scope = new ResolutionScope(roots); resolveAll(scope); return scope; } Resolver(ManifestProvider manifestProvider);   Resolver(ManifestProvider manifestProvider, CoordinateResolver resolvers[]); }
Resolver { @NotNull public ResolutionScope resolveAll(@NotNull SoftNameDependency[] roots) throws IOException, NoSuchAlgorithmException { ResolutionScope scope = new ResolutionScope(roots); resolveAll(scope); return scope; } Resolver(ManifestProvider manifestProvider);   Resolver(ManifestProvider manifestProvider, CoordinateResolver resolvers[]); @NotNull ResolutionScope resolveAll(@NotNull SoftNameDependency[] roots); void resolveAll(@NotNull ResolutionScope scope); @Nullable ResolvedManifest resolveAny(@NotNull SoftNameDependency dependency); }
Resolver { @NotNull public ResolutionScope resolveAll(@NotNull SoftNameDependency[] roots) throws IOException, NoSuchAlgorithmException { ResolutionScope scope = new ResolutionScope(roots); resolveAll(scope); return scope; } Resolver(ManifestProvider manifestProvider);   Resolver(ManifestProvider manifestProvider, CoordinateResolver resolvers[]); @NotNull ResolutionScope resolveAll(@NotNull SoftNameDependency[] roots); void resolveAll(@NotNull ResolutionScope scope); @Nullable ResolvedManifest resolveAny(@NotNull SoftNameDependency dependency);  }