01: package org.drools.brms.modeldriven;
02:
03: import junit.framework.TestCase;
04:
05: import org.drools.brms.client.modeldriven.SuggestionCompletionEngine;
06: import org.drools.brms.client.modeldriven.brl.ActionFieldValue;
07:
08: public class ActionFieldValueTest extends TestCase {
09:
10: public void testFormula() {
11: ActionFieldValue val = new ActionFieldValue("x", "y",
12: SuggestionCompletionEngine.TYPE_NUMERIC);
13: assertFalse(val.isFormula());
14: val = new ActionFieldValue("x", "=y * 20",
15: SuggestionCompletionEngine.TYPE_NUMERIC);
16: assertTrue(val.isFormula());
17: }
18:
19: }
|