Code example for Resources

Methods: getStringArray

0
        resources = new Activity().getResources();
    } 
 
    @Test(expected = Resources.NotFoundException.class) 
    public void getStringArray_shouldThrowExceptionIfNotFound() throws Exception { 
        resources.getStringArray(-1);
    } 
 
    @Test(expected = Resources.NotFoundException.class) 
    public void getIntegerArray_shouldThrowExceptionIfNotFound() throws Exception { 
        resources.getIntArray(-1);
    } 
 
    @Test 
    public void testConfiguration() { 
        Configuration configuration = resources.getConfiguration();
        assertThat(configuration).isNotNull();
        assertThat(configuration.locale).isNotNull();
    } 
 
Contextual code suggestions in your IDE  Get Codota for Java