Code example for Paint

Methods: getColor, setColor

0
public class AndroidTranslatorClassInstrumentedTest { 
 
    @Test 
    @Config(shadows = ShadowPaintForTests.class) 
    public void testNativeMethodsAreDelegated() throws Exception { 
        Paint paint = new Paint();
        paint.setColor(1234);
 
        assertThat(paint.getColor()).isEqualTo(1234);
    } 
 
    @Test 
    @Config(shadows = ShadowClassWithPrivateConstructor.class) 
    public void testClassesWithPrivateDefaultConstructorsCanBeShadowed() { 
        ClassWithPrivateConstructor inst = new ClassWithPrivateConstructor();
        assertThat(inst.getInt()).isEqualTo(42);
    } 
 
    @Test 
    public void testEnumConstructorsAreNotRewritten() { 
        // just referencing this enum value would blow up if we rewrite its constructor