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);
}
Aggregations