Search in sources :

Example 6 with ServiceUrlProvider

use of io.crnk.core.engine.url.ServiceUrlProvider in project crnk-framework by crnk-project.

the class CrnkBootTest method setServiceUrlProvider.

@Test
public void setServiceUrlProvider() {
    CrnkBoot boot = new CrnkBoot();
    boot.setServiceDiscoveryFactory(serviceDiscoveryFactory);
    ServiceUrlProvider serviceUrlProvider = mock(ServiceUrlProvider.class);
    boot.setServiceUrlProvider(serviceUrlProvider);
    boot.boot();
    Assert.assertEquals(serviceUrlProvider, boot.getServiceUrlProvider());
}
Also used : ConstantServiceUrlProvider(io.crnk.core.engine.url.ConstantServiceUrlProvider) ServiceUrlProvider(io.crnk.core.engine.url.ServiceUrlProvider) Test(org.junit.Test)

Aggregations

ServiceUrlProvider (io.crnk.core.engine.url.ServiceUrlProvider)6 Test (org.junit.Test)5 ConstantServiceUrlProvider (io.crnk.core.engine.url.ConstantServiceUrlProvider)4 RequestDispatcher (io.crnk.core.engine.dispatcher.RequestDispatcher)1 PropertiesProvider (io.crnk.core.engine.properties.PropertiesProvider)1 RegistryEntry (io.crnk.core.engine.registry.RegistryEntry)1 ResourceRegistry (io.crnk.core.engine.registry.ResourceRegistry)1 Module (io.crnk.core.module.Module)1 SimpleModule (io.crnk.core.module.SimpleModule)1 ReflectionsServiceDiscovery (io.crnk.core.module.discovery.ReflectionsServiceDiscovery)1 ServiceDiscovery (io.crnk.core.module.discovery.ServiceDiscovery)1 OffsetLimitPagingBehavior (io.crnk.core.queryspec.pagingspec.OffsetLimitPagingBehavior)1 JsonApiResponse (io.crnk.core.repository.response.JsonApiResponse)1 QueryParamsAdapter (io.crnk.legacy.internal.QueryParamsAdapter)1 QueryParams (io.crnk.legacy.queryParams.QueryParams)1 Properties (java.util.Properties)1 WebTarget (javax.ws.rs.client.WebTarget)1