Search in sources :

Example 6 with JaxrsModule

use of io.crnk.rs.internal.JaxrsModule in project crnk-framework by crnk-project.

the class AbstractMetaTest method setup.

@Before
public void setup() {
    boot = new CrnkBoot();
    boot.addModule(new JaxrsModule(null));
    boot.setServiceUrlProvider(new ConstantServiceUrlProvider("http://localhost"));
    boot.addModule(new TestModule());
    boot.addModule(new io.crnk.test.mock.dynamic.DynamicModule());
    configure();
    boot.boot();
    resourceProvider = new ResourceMetaProvider();
    lookup = new MetaLookup();
    lookup.addProvider(resourceProvider);
    lookup.setModuleContext(boot.getModuleRegistry().getContext());
    lookup.initialize();
}
Also used : CrnkBoot(io.crnk.core.boot.CrnkBoot) ResourceMetaProvider(io.crnk.meta.provider.resource.ResourceMetaProvider) JaxrsModule(io.crnk.rs.internal.JaxrsModule) ConstantServiceUrlProvider(io.crnk.core.engine.url.ConstantServiceUrlProvider) TestModule(io.crnk.test.mock.TestModule) Before(org.junit.Before)

Aggregations

JaxrsModule (io.crnk.rs.internal.JaxrsModule)6 CrnkBoot (io.crnk.core.boot.CrnkBoot)4 ConstantServiceUrlProvider (io.crnk.core.engine.url.ConstantServiceUrlProvider)3 ResourceMetaProvider (io.crnk.meta.provider.resource.ResourceMetaProvider)2 SecurityContext (javax.ws.rs.core.SecurityContext)2 Test (org.junit.Test)2 SecurityProvider (io.crnk.core.engine.security.SecurityProvider)1 ReflectionsServiceDiscovery (io.crnk.core.module.discovery.ReflectionsServiceDiscovery)1 SampleJsonServiceLocator (io.crnk.legacy.locator.SampleJsonServiceLocator)1 MetaLookup (io.crnk.meta.MetaLookup)1 TestModule (io.crnk.test.mock.TestModule)1 Before (org.junit.Before)1