Search in sources :

Example 1 with IAlbumTaskCallback

use of com.bilibili.boxing.model.callback.IAlbumTaskCallback in project boxing by Bilibili.

the class PickerModuleTest method testLoadImage.

@Test
public void testLoadImage() {
    assertNotNull(mPickerManager);
    mPickerManager.setBoxingConfig(new BoxingConfig(BoxingConfig.Mode.MULTI_IMG));
    BoxingConfig config = mPickerManager.getBoxingConfig();
    assertNotNull(config);
    Assert.assertEquals(config.getMode(), BoxingConfig.Mode.MULTI_IMG);
    ContentResolver cr = RuntimeEnvironment.application.getContentResolver();
    assertNotNull(cr);
    mPickerManager.loadAlbum(cr, new IAlbumTaskCallback() {

        @Override
        public void postAlbumList(List<AlbumEntity> list) {
            assertNotNull(list);
        }
    });
}
Also used : AlbumEntity(com.bilibili.boxing.model.entity.AlbumEntity) BoxingConfig(com.bilibili.boxing.model.config.BoxingConfig) IAlbumTaskCallback(com.bilibili.boxing.model.callback.IAlbumTaskCallback) ContentResolver(android.content.ContentResolver) Test(org.junit.Test)

Aggregations

ContentResolver (android.content.ContentResolver)1 IAlbumTaskCallback (com.bilibili.boxing.model.callback.IAlbumTaskCallback)1 BoxingConfig (com.bilibili.boxing.model.config.BoxingConfig)1 AlbumEntity (com.bilibili.boxing.model.entity.AlbumEntity)1 Test (org.junit.Test)1