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