Code example for Paint

Methods: getColor, setColor

0
  } 
 
  @Test 
  @Config(shadows = {ShadowPaintForTests.class}) 
  public void testNativeMethodsAreDelegated() throws Exception { 
    Paint paint = new Paint();
    paint.setColor(1234);
 
    assertThat(paint.getColor()).isEqualTo(1234);
  } 
 
  @Implements(Paint.class)
  public static class ShadowPaintForTests { 
    private int color;
 
    @Implementation 
    public void setColor(int color) {
      this.color = color;
    } 
 
    @Implementation