01: /*
02: * User: mrettig
03: * Date: Jun 26, 2002
04: * Time: 10:45:06 AM
05: */
06: package net.sourceforge.jaxor.tests;
07:
08: import junit.framework.TestCase;
09: import net.sourceforge.jaxor.MetaField;
10: import net.sourceforge.jaxor.mappers.StringMapper;
11:
12: public class MetaFieldTest extends TestCase {
13:
14: public void testGetName() {
15: MetaField field = new MetaField("field", true,
16: StringMapper.class);
17: assertEquals("field", field.getColumn());
18: }
19:
20: public void testGetAlias() {
21: MetaField field = new MetaField("field", "Alias", true, false,
22: true, false, StringMapper.class);
23: assertEquals("Alias", field.getProperty());
24: }
25:
26: public void testGetNullAlias() {
27: MetaField field = new MetaField("field", null, true, false,
28: true, false, StringMapper.class);
29: assertEquals(null, field.getProperty());
30: }
31: }
|