@Test public void primeGrpc_loadsClassNamesFromResource_with1entry() { new DefaultPrimer(classloaderStrategy, "/primer/1-entry", "not used", DIRECT_EXECUTOR) .primeGrpcAsync(); verify(classloaderStrategy).accept("1"); }
@Override public void primeGrpcAsync() { boolean needsPrime = isGrpcPrimed.compareAndSet(false, true); if (needsPrime) { primeClassNamesResourceAsync(grpcResourcePath); } }
DefaultPrimer extends Primer { @Override public void primeGrpcAsync() { boolean needsPrime = isGrpcPrimed.compareAndSet(false, true); if (needsPrime) { primeClassNamesResourceAsync(grpcResourcePath); } } }
DefaultPrimer extends Primer { @Override public void primeGrpcAsync() { boolean needsPrime = isGrpcPrimed.compareAndSet(false, true); if (needsPrime) { primeClassNamesResourceAsync(grpcResourcePath); } } DefaultPrimer(); @VisibleForTesting  DefaultPrimer(
      Consumer<String> classloaderStrategy,
      String grpcResourcePath,
      String protobufResourcePath,
      ExecutorService executorService); }
DefaultPrimer extends Primer { @Override public void primeGrpcAsync() { boolean needsPrime = isGrpcPrimed.compareAndSet(false, true); if (needsPrime) { primeClassNamesResourceAsync(grpcResourcePath); } } DefaultPrimer(); @VisibleForTesting  DefaultPrimer(
      Consumer<String> classloaderStrategy,
      String grpcResourcePath,
      String protobufResourcePath,
      ExecutorService executorService); @Override void primeGrpcAsync(); @Override void primeProtobufAsync(); @Override void primeAllVersionsAsync(); @Override void primeCredentialsAsync(Credentials credentials); }
DefaultPrimer extends Primer { @Override public void primeGrpcAsync() { boolean needsPrime = isGrpcPrimed.compareAndSet(false, true); if (needsPrime) { primeClassNamesResourceAsync(grpcResourcePath); } } DefaultPrimer(); @VisibleForTesting  DefaultPrimer(
      Consumer<String> classloaderStrategy,
      String grpcResourcePath,
      String protobufResourcePath,
      ExecutorService executorService); @Override void primeGrpcAsync(); @Override void primeProtobufAsync(); @Override void primeAllVersionsAsync(); @Override void primeCredentialsAsync(Credentials credentials);  }