use of io.crnk.core.engine.internal.utils.JsonApiUrlBuilder in project crnk-framework by crnk-project.
the class DefaultQueryParamsSerializerTest method testHttpsSchema.
@Test
public void testHttpsSchema() {
CrnkBoot boot = new CrnkBoot();
boot.setServiceUrlProvider(new ConstantServiceUrlProvider("https://127.0.0.1"));
boot.setServiceDiscovery(new ReflectionsServiceDiscovery(MockConstants.TEST_MODELS_PACKAGE));
boot.boot();
urlBuilder = new JsonApiUrlBuilder(boot.getResourceRegistry());
check("https://127.0.0.1/tasks", null, new QueryParams());
}
use of io.crnk.core.engine.internal.utils.JsonApiUrlBuilder in project crnk-framework by crnk-project.
the class DefaultQuerySpecSerializerTest method setup.
@Before
public void setup() {
CrnkBoot boot = new CrnkBoot();
boot.setServiceUrlProvider(new ConstantServiceUrlProvider("http://127.0.0.1"));
boot.setServiceDiscovery(new ReflectionsServiceDiscovery(String.format("%s,io.crnk.core.queryspec.pagingspec", MockConstants.TEST_MODELS_PACKAGE)));
boot.boot();
resourceRegistry = boot.getResourceRegistry();
urlBuilder = new JsonApiUrlBuilder(resourceRegistry);
}
Aggregations