use of com.github.ambry.rest.BlobStorageService in project ambry by linkedin.
the class AmbryBlobStorageServiceFactoryTest method getAmbryBlobStorageServiceTest.
/**
* Tests the instantiation of an {@link AmbryBlobStorageService} instance through the
* {@link AmbryBlobStorageServiceFactory}.
* @throws Exception
*/
@Test
public void getAmbryBlobStorageServiceTest() throws Exception {
// dud properties. server should pick up defaults
Properties properties = new Properties();
VerifiableProperties verifiableProperties = new VerifiableProperties(properties);
AmbryBlobStorageServiceFactory ambryBlobStorageServiceFactory = new AmbryBlobStorageServiceFactory(verifiableProperties, new MockClusterMap(), new MockRestRequestResponseHandler(), new InMemoryRouter(verifiableProperties, new MockClusterMap()), new MockNotifier());
BlobStorageService ambryBlobStorageService = ambryBlobStorageServiceFactory.getBlobStorageService();
assertNotNull("No BlobStorageService returned", ambryBlobStorageService);
assertEquals("Did not receive an AmbryBlobStorageService instance", AmbryBlobStorageService.class.getCanonicalName(), ambryBlobStorageService.getClass().getCanonicalName());
}
Aggregations