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);
}
});
}
Aggregations