Search in sources :

Example 1 with MetaStoreResolver

use of org.pentaho.di.trans.dataservice.resolvers.MetaStoreResolver 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))));
}
Also used : MetaStoreResolver(org.pentaho.di.trans.dataservice.resolvers.MetaStoreResolver) DataServiceClient(org.pentaho.di.trans.dataservice.clients.DataServiceClient) DataServiceResolver(org.pentaho.di.trans.dataservice.resolvers.DataServiceResolver) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)1 DataServiceClient (org.pentaho.di.trans.dataservice.clients.DataServiceClient)1 DataServiceResolver (org.pentaho.di.trans.dataservice.resolvers.DataServiceResolver)1 MetaStoreResolver (org.pentaho.di.trans.dataservice.resolvers.MetaStoreResolver)1