Search in sources :

Example 1 with ListBlobItemHolderFactory

use of org.apache.druid.storage.azure.blob.ListBlobItemHolderFactory in project druid by druid-io.

the class AzureStorageDruidModuleTest method testGetListBlobItemDruidFactoryCanCreateListBlobItemDruid.

@Test
public void testGetListBlobItemDruidFactoryCanCreateListBlobItemDruid() {
    injector = makeInjectorWithProperties(PROPERTIES);
    ListBlobItemHolderFactory factory = injector.getInstance(ListBlobItemHolderFactory.class);
    ListBlobItemHolder object1 = factory.create(blobItem1);
    ListBlobItemHolder object2 = factory.create(blobItem2);
    Assert.assertNotNull(object1);
    Assert.assertNotNull(object2);
    Assert.assertNotSame(object1, object2);
}
Also used : ListBlobItemHolderFactory(org.apache.druid.storage.azure.blob.ListBlobItemHolderFactory) ListBlobItemHolder(org.apache.druid.storage.azure.blob.ListBlobItemHolder) Test(org.junit.Test)

Aggregations

ListBlobItemHolder (org.apache.druid.storage.azure.blob.ListBlobItemHolder)1 ListBlobItemHolderFactory (org.apache.druid.storage.azure.blob.ListBlobItemHolderFactory)1 Test (org.junit.Test)1