• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 package com.xtremelabs.robolectric.shadows;
2 
3 import android.widget.Gallery;
4 import com.xtremelabs.robolectric.WithTestDefaultsRunner;
5 import org.junit.Test;
6 import org.junit.runner.RunWith;
7 
8 import static org.hamcrest.CoreMatchers.equalTo;
9 import static org.junit.Assert.assertThat;
10 
11 @RunWith(WithTestDefaultsRunner.class)
12 public class LayoutParamsTest {
13     @Test
testConstructor()14     public void testConstructor() throws Exception {
15         Gallery.LayoutParams layoutParams = new Gallery.LayoutParams(123, 456);
16         assertThat(layoutParams.width, equalTo(123));
17         assertThat(layoutParams.height, equalTo(456));
18     }
19 }
20