@Test public void newNameResolver_providerReturnsNull() { List<NameResolverProvider> providers = Collections.<NameResolverProvider>singletonList( new BaseProvider(true, 5) { @Override public NameResolver newNameResolver(URI passedUri, Attributes passedAttributes) { assertSame(uri, passedUri); assertSame(attributes, passedAttributes); return null; } }); assertNull(NameResolverProvider.asFactory(providers).newNameResolver(uri, attributes)); }
public static NameResolver.Factory asFactory() { return factory; }
NameResolverProvider extends NameResolver.Factory { public static NameResolver.Factory asFactory() { return factory; } }
NameResolverProvider extends NameResolver.Factory { public static NameResolver.Factory asFactory() { return factory; }  }
NameResolverProvider extends NameResolver.Factory { public static NameResolver.Factory asFactory() { return factory; }  static List<NameResolverProvider> providers(); static NameResolver.Factory asFactory(); }
NameResolverProvider extends NameResolver.Factory { public static NameResolver.Factory asFactory() { return factory; }  static List<NameResolverProvider> providers(); static NameResolver.Factory asFactory(); @SuppressWarnings("unused") // Avoids outside callers accidentally depending on the super class.
  static final Attributes.Key<Integer> PARAMS_DEFAULT_PORT; }