Skip to content

Commit 1528716

Browse files
committed
Testing Dimension
1 parent 9726ad1 commit 1528716

File tree

1 file changed

+112
-0
lines changed

1 file changed

+112
-0
lines changed
Lines changed: 112 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,112 @@
1+
package de.gwdg.metadataqa.api.util;
2+
3+
import org.junit.Test;
4+
5+
import static org.junit.Assert.*;
6+
7+
public class DimensionTest {
8+
9+
@Test
10+
public void getMinWidth() {
11+
Dimension dimension = new Dimension();
12+
dimension.setMinWidth(100);
13+
assertEquals(100, (long) dimension.getMinWidth());
14+
}
15+
16+
@Test
17+
public void withMinWidth() {
18+
Dimension dimension = new Dimension().withMinWidth(100);
19+
assertEquals(100, (long) dimension.getMinWidth());
20+
}
21+
22+
@Test
23+
public void getMaxWidth() {
24+
Dimension dimension = new Dimension();
25+
dimension.setMaxWidth(100);
26+
assertEquals(100, (long) dimension.getMaxWidth());
27+
}
28+
29+
@Test
30+
public void withMaxWidth() {
31+
Dimension dimension = new Dimension().withMaxWidth(100);
32+
assertEquals(100, (long) dimension.getMaxWidth());
33+
}
34+
35+
@Test
36+
public void getMinHeight() {
37+
Dimension dimension = new Dimension();
38+
dimension.setMinHeight(100);
39+
assertEquals(100, (long) dimension.getMinHeight());
40+
}
41+
42+
@Test
43+
public void withMinHeight() {
44+
Dimension dimension = new Dimension().withMinHeight(100);
45+
assertEquals(100, (long) dimension.getMinHeight());
46+
}
47+
48+
@Test
49+
public void getMaxHeight() {
50+
Dimension dimension = new Dimension();
51+
dimension.setMaxHeight(100);
52+
assertEquals(100, (long) dimension.getMaxHeight());
53+
}
54+
55+
@Test
56+
public void withMaxHeight() {
57+
Dimension dimension = new Dimension().withMaxHeight(100);
58+
assertEquals(100, (long) dimension.getMaxHeight());
59+
}
60+
61+
@Test
62+
public void getMinShortside() {
63+
Dimension dimension = new Dimension();
64+
dimension.setMinShortside(100);
65+
assertEquals(100, (long) dimension.getMinShortside());
66+
}
67+
68+
@Test
69+
public void withMinShortside() {
70+
Dimension dimension = new Dimension().withMinShortside(100);
71+
assertEquals(100, (long) dimension.getMinShortside());
72+
}
73+
74+
@Test
75+
public void getMaxShortside() {
76+
Dimension dimension = new Dimension();
77+
dimension.setMaxShortside(100);
78+
assertEquals(100, (long) dimension.getMaxShortside());
79+
}
80+
81+
@Test
82+
public void withMaxShortside() {
83+
Dimension dimension = new Dimension().withMaxShortside(100);
84+
assertEquals(100, (long) dimension.getMaxShortside());
85+
}
86+
87+
@Test
88+
public void getMinLongside() {
89+
Dimension dimension = new Dimension();
90+
dimension.setMinLongside(100);
91+
assertEquals(100, (long) dimension.getMinLongside());
92+
}
93+
94+
@Test
95+
public void withMinLongside() {
96+
Dimension dimension = new Dimension().withMinLongside(100);
97+
assertEquals(100, (long) dimension.getMinLongside());
98+
}
99+
100+
@Test
101+
public void getMaxLongside() {
102+
Dimension dimension = new Dimension();
103+
dimension.setMaxLongside(100);
104+
assertEquals(100, (long) dimension.getMaxLongside());
105+
}
106+
107+
@Test
108+
public void withMaxLongside() {
109+
Dimension dimension = new Dimension().withMaxLongside(100);
110+
assertEquals(100, (long) dimension.getMaxLongside());
111+
}
112+
}

0 commit comments

Comments
 (0)