Home | History | Annotate | Download | only in shadows
      1 package com.xtremelabs.robolectric.shadows;
      2 
      3 import android.graphics.Paint;
      4 import android.graphics.drawable.ShapeDrawable;
      5 import com.xtremelabs.robolectric.WithTestDefaultsRunner;
      6 import org.junit.Test;
      7 import org.junit.runner.RunWith;
      8 
      9 import static org.hamcrest.core.Is.is;
     10 import static org.junit.Assert.assertNotNull;
     11 import static org.junit.Assert.assertThat;
     12 
     13 @RunWith(WithTestDefaultsRunner.class)
     14 public class ShapeDrawableTest {
     15     @Test
     16     public void getPaint_ShouldReturnTheSamePaint() throws Exception {
     17         ShapeDrawable shapeDrawable = new ShapeDrawable();
     18         Paint paint = shapeDrawable.getPaint();
     19         assertNotNull(paint);
     20         assertThat(shapeDrawable.getPaint(), is(paint));
     21     }
     22 }
     23