01: package org.drools.brms.modeldriven;
02:
03: import junit.framework.TestCase;
04:
05: import org.drools.brms.client.modeldriven.brl.DSLSentence;
06:
07: public class DSLSentenceTest extends TestCase {
08:
09: public void testSentence() {
10:
11: final DSLSentence sen = new DSLSentence();
12: sen.sentence = "this is {something} here and {here}";
13: assertEquals("this is something here and here", sen.toString());
14:
15: sen.sentence = "foo bar";
16: assertEquals("foo bar", sen.toString());
17:
18: final DSLSentence newOne = sen.copy();
19: assertFalse(newOne == sen);
20: assertEquals(newOne.sentence, sen.sentence);
21: }
22:
23: }
|