Code example for ContentProviderResult

0
 
@RunWith(TestRunners.WithDefaults.class) 
public class ContentProviderResultTest { 
    @Test 
    public void count() { 
        ContentProviderResult result = new ContentProviderResult(5);
        assertThat(result.count).isEqualTo(5);
    } 
     
    @Test 
    public void uri() { 
        Uri uri = Uri.parse("content://org.robolectric");
        ContentProviderResult result = new ContentProviderResult(uri);
        assertThat(result.uri).isEqualTo(uri);
    } 
} 
Connect your IDE to all the code out there  Get Codota for Java