|
18 | 18 |
|
19 | 19 | import org.junit.Test; |
20 | 20 |
|
21 | | -import static org.hamcrest.core.Is.is; |
22 | | -import static org.junit.Assert.assertThat; |
| 21 | +import static org.junit.Assert.assertEquals; |
23 | 22 |
|
24 | 23 | public class TypeWidthTest { |
25 | | - |
26 | 24 | @Test |
27 | 25 | public void testOrdinals() { |
28 | | - assertThat(TypeWidth.ULTRA_CONDENSED.ordinal(), is(0)); |
29 | | - assertThat(TypeWidth.EXTRA_CONDENSED.ordinal(), is(1)); |
30 | | - assertThat(TypeWidth.CONDENSED.ordinal(), is(2)); |
31 | | - assertThat(TypeWidth.SEMI_CONDENSED.ordinal(), is(3)); |
32 | | - assertThat(TypeWidth.NORMAL.ordinal(), is(4)); |
33 | | - assertThat(TypeWidth.SEMI_EXPANDED.ordinal(), is(5)); |
34 | | - assertThat(TypeWidth.EXPANDED.ordinal(), is(6)); |
35 | | - assertThat(TypeWidth.EXTRA_EXPANDED.ordinal(), is(7)); |
36 | | - assertThat(TypeWidth.ULTRA_EXPANDED.ordinal(), is(8)); |
| 26 | + assertEquals(TypeWidth.ULTRA_CONDENSED.ordinal(), 0); |
| 27 | + assertEquals(TypeWidth.EXTRA_CONDENSED.ordinal(), 1); |
| 28 | + assertEquals(TypeWidth.CONDENSED.ordinal(), 2); |
| 29 | + assertEquals(TypeWidth.SEMI_CONDENSED.ordinal(), 3); |
| 30 | + assertEquals(TypeWidth.NORMAL.ordinal(), 4); |
| 31 | + assertEquals(TypeWidth.SEMI_EXPANDED.ordinal(), 5); |
| 32 | + assertEquals(TypeWidth.EXPANDED.ordinal(), 6); |
| 33 | + assertEquals(TypeWidth.EXTRA_EXPANDED.ordinal(), 7); |
| 34 | + assertEquals(TypeWidth.ULTRA_EXPANDED.ordinal(), 8); |
37 | 35 | } |
38 | 36 |
|
39 | 37 | @Test |
40 | 38 | public void testValues() { |
41 | | - assertThat(TypeWidth.ULTRA_CONDENSED.value, is(1)); |
42 | | - assertThat(TypeWidth.EXTRA_CONDENSED.value, is(2)); |
43 | | - assertThat(TypeWidth.CONDENSED.value, is(3)); |
44 | | - assertThat(TypeWidth.SEMI_CONDENSED.value, is(4)); |
45 | | - assertThat(TypeWidth.NORMAL.value, is(5)); |
46 | | - assertThat(TypeWidth.SEMI_EXPANDED.value, is(6)); |
47 | | - assertThat(TypeWidth.EXPANDED.value, is(7)); |
48 | | - assertThat(TypeWidth.EXTRA_EXPANDED.value, is(8)); |
49 | | - assertThat(TypeWidth.ULTRA_EXPANDED.value, is(9)); |
| 39 | + assertEquals(TypeWidth.ULTRA_CONDENSED.value, 1); |
| 40 | + assertEquals(TypeWidth.EXTRA_CONDENSED.value, 2); |
| 41 | + assertEquals(TypeWidth.CONDENSED.value, 3); |
| 42 | + assertEquals(TypeWidth.SEMI_CONDENSED.value, 4); |
| 43 | + assertEquals(TypeWidth.NORMAL.value, 5); |
| 44 | + assertEquals(TypeWidth.SEMI_EXPANDED.value, 6); |
| 45 | + assertEquals(TypeWidth.EXPANDED.value, 7); |
| 46 | + assertEquals(TypeWidth.EXTRA_EXPANDED.value, 8); |
| 47 | + assertEquals(TypeWidth.ULTRA_EXPANDED.value, 9); |
50 | 48 | } |
51 | 49 | } |
0 commit comments