1

I create my own finagle resolver, and I want to test it in my scalaTest. But since my test does not provide the META-INF/services/com.twitter.finagle.Resolver file, when I run the client

  Http.client.newService("myResolver!foo.com:/endpoint", "service")

I receive the error

com.twitter.finagle.ResolverNotFoundException: Resolver not found for scheme "myResolver". Please add the jar containing this resolver to your classpath

Any idea how to test a resolver in my test running with Intellij?

paul
  • 12,873
  • 23
  • 91
  • 153
  • You have answered your own question: "since my test does not provide the META-INF/services/com.twitter.finagle.Resolver file ..." Make it provide the file. – Dima May 13 '17 at 14:17

1 Answers1

0

Can you try providing the META-INF file to intellij, like Dima suggested?

nnythm
  • 3,280
  • 4
  • 26
  • 36