Code example for ColorStateList

0
    } 
 
    @Implements(TextView.class)
    public static class TextViewWithDummyGetTextColorsMethod { 
        public static ColorStateList getTextColors(Context context, TypedArray attrs) {
            return new ColorStateList(new int[0][0], new int[0]);
        } 
    } 
 
    @Test 
    public void testDirectlyOn_CallTwiceChecking() throws Exception { 
        directlyOn(View.class);
 
        Exception e = null;
        try { 
            directlyOn(View.class);
        } catch (RuntimeException e1) {
            e = e1;
        } 
        assertNotNull(e);