Line | |
---|
1 | package org.expeditee.items;
|
---|
2 |
|
---|
3 | import junit.framework.TestCase;
|
---|
4 |
|
---|
5 | public class JustificationTest extends TestCase {
|
---|
6 |
|
---|
7 | public final void testGetJustification() {
|
---|
8 | assertEquals(Justification.full, Justification.getJustification(" FULL "));
|
---|
9 | assertEquals(Justification.left, Justification.getJustification("l"));
|
---|
10 | assertEquals(Justification.right, Justification.getJustification("R"));
|
---|
11 | assertEquals(Justification.center, Justification.getJustification("CeNtEr"));
|
---|
12 | assertEquals(Justification.left, Justification.getJustification("CeNtre"));
|
---|
13 | }
|
---|
14 |
|
---|
15 | public final void testGetCode() {
|
---|
16 | assertEquals('C', Justification.center.getCode());
|
---|
17 | }
|
---|
18 |
|
---|
19 | public final void testToString() {
|
---|
20 | assertEquals("center", Justification.center.toString());
|
---|
21 | }
|
---|
22 | } |
---|
Note:
See
TracBrowser
for help on using the repository browser.