01: package org.drools.decisiontable.parser;
02:
03: import junit.framework.TestCase;
04:
05: public class ColumnFactoryTest extends TestCase {
06:
07: public void testGetColumn() {
08: ColumnFactory f = new ColumnFactory();
09: Column column = f.getColumn("column");
10: assertTrue(!(column instanceof ArrayColumn));
11: assertEquals("column", column.getName());
12: }
13:
14: public void testGetArrayColumn() {
15: ColumnFactory f = new ColumnFactory();
16: Column column = f.getColumn("column[]");
17: assertTrue(column instanceof ArrayColumn);
18: assertEquals("column", column.getName());
19: }
20:
21: }
|