use of com.palantir.dialogue.ConjureRuntime in project conjure-java-runtime by palantir.
the class JaxrsClientValidationTest method testNonJaxrs.
@Test
public void testNonJaxrs() {
ConjureRuntime runtime = mock(ConjureRuntime.class);
Channel channel = mock(Channel.class);
assertThatThrownBy(() -> JaxRsClient.create(NotJaxRs.class, channel, runtime)).isInstanceOf(IllegalStateException.class).hasMessageContaining("Method getValue not annotated with HTTP method type");
}
use of com.palantir.dialogue.ConjureRuntime in project dialogue by palantir.
the class ReloadingClientFactory method get.
@Override
public <T> T get(Class<T> serviceClass, String serviceName) {
Channel channel = getChannel(serviceName);
ConjureRuntime runtime = params.runtime();
return Reflection.callStaticFactoryMethod(serviceClass, channel, runtime);
}
Aggregations