Search in sources :

Example 1 with TestService

use of org.apache.knox.gateway.services.TestService in project knox by apache.

the class ServiceFactoryTest method shouldReturnCustomImplementation.

private void shouldReturnCustomImplementation(AbstractServiceFactory serviceFactory, ServiceType matchingServiceType) throws Exception {
    final Service service = serviceFactory.create(gatewayServices, matchingServiceType, null, null, "org.apache.knox.gateway.services.TestService");
    assertTrue(service instanceof TestService);
}
Also used : TestService(org.apache.knox.gateway.services.TestService) AliasService(org.apache.knox.gateway.services.security.AliasService) RemoteConfigurationRegistryClientService(org.apache.knox.gateway.services.config.client.RemoteConfigurationRegistryClientService) TestService(org.apache.knox.gateway.services.TestService) MasterService(org.apache.knox.gateway.services.security.MasterService) KeystoreService(org.apache.knox.gateway.services.security.KeystoreService) Service(org.apache.knox.gateway.services.Service)

Aggregations

Service (org.apache.knox.gateway.services.Service)1 TestService (org.apache.knox.gateway.services.TestService)1 RemoteConfigurationRegistryClientService (org.apache.knox.gateway.services.config.client.RemoteConfigurationRegistryClientService)1 AliasService (org.apache.knox.gateway.services.security.AliasService)1 KeystoreService (org.apache.knox.gateway.services.security.KeystoreService)1 MasterService (org.apache.knox.gateway.services.security.MasterService)1