01: package de.java2html.options.test;
02:
03: import de.java2html.options.HorizontalAlignment;
04: import junit.framework.TestCase;
05:
06: /**
07: * @author Markus Gebhard
08: */
09: public class HorizontalAlignmentTest extends TestCase {
10: public void testByName() {
11: assertSame(HorizontalAlignment.LEFT, HorizontalAlignment
12: .getByName(HorizontalAlignment.LEFT.getName()));
13: assertSame(HorizontalAlignment.RIGHT, HorizontalAlignment
14: .getByName(HorizontalAlignment.RIGHT.getName()));
15: assertSame(HorizontalAlignment.CENTER, HorizontalAlignment
16: .getByName(HorizontalAlignment.CENTER.getName()));
17: }
18:
19: public void testLeftIsDefault() {
20: assertSame(HorizontalAlignment.LEFT, HorizontalAlignment
21: .getAll()[0]);
22: }
23: }
|