Search in sources :

Example 1 with RestTemplateAdapter

use of io.crnk.spring.client.RestTemplateAdapter in project crnk-framework by crnk-project.

the class SleuthModuleTest method setup.

@Before
@SuppressWarnings("unchecked")
public void setup() {
    RestTemplateAdapter httpAdapter = new RestTemplateAdapter();
    client = new CrnkClient(getBaseUri().toString());
    client.setHttpAdapter(httpAdapter);
    taskRepo = client.getRepositoryForType(Task.class);
    projectRepo = client.getRepositoryForType(Project.class);
    TaskRepository.clear();
    ProjectRepository.clear();
    httpAdapter.setReceiveTimeout(10000, TimeUnit.SECONDS);
}
Also used : Project(io.crnk.test.mock.models.Project) CrnkClient(io.crnk.client.CrnkClient) Task(io.crnk.test.mock.models.Task) RestTemplateAdapter(io.crnk.spring.client.RestTemplateAdapter) Before(org.junit.Before)

Aggregations

CrnkClient (io.crnk.client.CrnkClient)1 RestTemplateAdapter (io.crnk.spring.client.RestTemplateAdapter)1 Project (io.crnk.test.mock.models.Project)1 Task (io.crnk.test.mock.models.Task)1 Before (org.junit.Before)1