Back to project page PhotoPicker.
The source code is released under:
GNU General Public License
If you think the Android project PhotoPicker listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.thuytrinh.photopicker.controller.loader; //from w w w .ja v a 2 s . c o m import android.provider.MediaStore; import android.test.AndroidTestCase; import org.assertj.android.api.Assertions; public class PhotosLoaderTest extends AndroidTestCase { public void testShouldInitializeProperly() { PhotosLoader photosLoader = new PhotosLoader(getContext()); long mockAlbumId = 12345L; photosLoader.setAlbumId(mockAlbumId); Assertions.assertThat(photosLoader) .hasProjection( MediaStore.Images.Media._ID, MediaStore.Images.Media.BUCKET_ID, MediaStore.Images.Media.BUCKET_DISPLAY_NAME, MediaStore.Images.Media.DATA) .hasUri(MediaStore.Images.Media.EXTERNAL_CONTENT_URI) .hasSelection(MediaStore.Images.Media.BUCKET_ID + " = ?") .hasSelectionArgs(Long.toString(mockAlbumId)); } }