Search in sources :

Example 16 with ResourceMetaProvider

use of io.crnk.meta.provider.resource.ResourceMetaProvider in project crnk-framework by crnk-project.

the class AbstractOperationsTest method setup.

@Before
public void setup() {
    client = new CrnkClient(getBaseUri().toString());
    client.setActionStubFactory(JerseyActionStubFactory.newInstance());
    client.getHttpAdapter().setReceiveTimeout(10000000, TimeUnit.MILLISECONDS);
    MetaModule metaModule = MetaModule.create();
    metaModule.addMetaProvider(new ResourceMetaProvider());
    client.addModule(metaModule);
    JpaModule module = JpaModule.newClientModule();
    setupModule(module, false);
    client.addModule(module);
    setNetworkTimeout(client, 10000, TimeUnit.SECONDS);
}
Also used : CrnkClient(io.crnk.client.CrnkClient) ResourceMetaProvider(io.crnk.meta.provider.resource.ResourceMetaProvider) MetaModule(io.crnk.meta.MetaModule) JpaModule(io.crnk.jpa.JpaModule) Before(org.junit.Before)

Aggregations

ResourceMetaProvider (io.crnk.meta.provider.resource.ResourceMetaProvider)16 Before (org.junit.Before)11 MetaModule (io.crnk.meta.MetaModule)8 CrnkBoot (io.crnk.core.boot.CrnkBoot)7 ConstantServiceUrlProvider (io.crnk.core.engine.url.ConstantServiceUrlProvider)5 MetaModuleConfig (io.crnk.meta.MetaModuleConfig)4 TestModule (io.crnk.test.mock.TestModule)4 MetaElement (io.crnk.meta.model.MetaElement)3 CrnkClient (io.crnk.client.CrnkClient)2 EmptyServiceDiscovery (io.crnk.core.module.discovery.EmptyServiceDiscovery)2 Supplier (io.crnk.core.utils.Supplier)2 JaxrsModule (io.crnk.rs.internal.JaxrsModule)2 ReflectionsServiceDiscovery (io.crnk.core.module.discovery.ReflectionsServiceDiscovery)1 TSGeneratorConfig (io.crnk.gen.typescript.TSGeneratorConfig)1 TSGeneratorExtension (io.crnk.gen.typescript.TSGeneratorExtension)1 TSGenerator (io.crnk.gen.typescript.internal.TSGenerator)1 JpaModule (io.crnk.jpa.JpaModule)1 SampleJsonServiceLocator (io.crnk.legacy.locator.SampleJsonServiceLocator)1 MetaLookup (io.crnk.meta.MetaLookup)1 MetaRelationshipRepositoryImpl (io.crnk.meta.internal.MetaRelationshipRepositoryImpl)1