@Test public void testEmptyScopeResolution() throws Exception { ManifestProvider provider = mock(ManifestProvider.class); when(provider.tryGetManifest(ADMOB_COORDINATE, new URL(ADMOB_URL))).thenReturn(ADMOB_MISSING_DEPENDENCY_MANIFEST); Resolver resolver = new Resolver(provider); ResolutionScope scope = resolver.resolveAll(new SoftNameDependency[]{}); assertThat(scope.isResolutionComplete()).isTrue(); assertThat(scope.getResolutions()).hasSize(0); }
@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);  }