use of org.pentaho.di.trans.dataservice.clients.DataServiceClient in project pdi-dataservice-server-plugin by pentaho.
the class DataServiceFactoryTest method testCreateClient.
@Test
public void testCreateClient() throws Exception {
when(repositoryLocator.getRepository()).thenReturn(repository);
DataServiceResolver dataServiceResolver = new MetaStoreResolver(repositoryLocator, context);
DataServiceClient client = new DataServiceClient(queryService, dataServiceResolver, Executors.newCachedThreadPool());
metaStoreUtil.save(dataService);
metaStoreUtil.sync(transMeta, exceptionHandler);
assertThat(client.getServiceInformation(), contains(hasProperty("name", equalTo(DATA_SERVICE_NAME))));
}
Aggregations