source: trunk/tests/org/expeditee/items/JustificationTest.java@ 146

Last change on this file since 146 was 146, checked in by ra33, 16 years ago
File size: 741 bytes
Line 
1package org.expeditee.items;
2
3import junit.framework.TestCase;
4
5public 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.