https://kotlinlang.org logo
#ktor
Title
# ktor
q

qlitzler

05/16/2019, 1:35 PM
@e5l
Full stacktrace:
Copy code
java.lang.AbstractMethodError: io.ktor.client.engine.mock.MockEngine.install(Lio/ktor/client/HttpClient;)V

	at io.ktor.client.HttpClient.<init>(HttpClient.kt:113)
	at io.ktor.client.HttpClientKt.HttpClient(HttpClient.kt:53)
	at com.algolia.search.configuration.HttpClientKt.getHttpClient(HttpClient.kt:24)
	at com.algolia.search.configuration.ConfigurationSearch.<init>(ConfigurationSearch.kt:25)
	at com.algolia.search.configuration.ConfigurationSearch.<init>(ConfigurationSearch.kt:22)
	at ClientKt.mockClient(Client.kt:33)
	at filter.facet.TestFacetListConnectSearcher.<init>(TestFacetListConnectSearcher.kt:29)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
	at org.junit.runners.BlockJUnit4ClassRunner.createTest(BlockJUnit4ClassRunner.java:217)
	at org.junit.runners.BlockJUnit4ClassRunner$1.runReflectiveCall(BlockJUnit4ClassRunner.java:266)
	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
	at org.junit.runners.BlockJUnit4ClassRunner.methodBlock(BlockJUnit4ClassRunner.java:263)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
	at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
	at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:68)
	at com.intellij.rt.execution.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:47)
	at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:242)
	at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:70)
My bad, I just didn't update the dependency everywhere properly like I should have. Nevermind this
👍 1