Debian Codegraph @

sejda-conversion/src/test/java/org/sejda/conversion/RotationAdapterTest.java

raw
1 package org.sejda.conversion;
2
3 import org.junit.Test;
4
5 import static org.hamcrest.MatcherAssert.assertThat;
6 import static org.hamcrest.Matchers.is;
7 import static org.sejda.model.rotation.Rotation.*;
8
9 /**
10 * Created on 6/7/12 10:02 PM
11 *
12 * @author: Edi Weissmann
13 */
14 public class RotationAdapterTest {
15
16 @Test
17 public void testGetPageRotation() {
18
19 assertThat(new RotationAdapter("90").getEnumValue(), is(DEGREES_90));
20 assertThat(new RotationAdapter("180").getEnumValue(), is(DEGREES_180));
21 assertThat(new RotationAdapter("270").getEnumValue(), is(DEGREES_270));
22 }
23 }