01: package org.drools.facttemplates;
02:
03: import junit.framework.TestCase;
04:
05: import org.drools.base.ValueType;
06:
07: public class FieldTemplateTest extends TestCase {
08: public void testFieldTemplate() {
09: final FieldTemplate cheeseName = new FieldTemplateImpl("name",
10: 5, String.class);
11: assertEquals("name", cheeseName.getName());
12: assertEquals(ValueType.STRING_TYPE, cheeseName.getValueType());
13: assertEquals(5, cheeseName.getIndex());
14:
15: }
16: }
|