01: package org.drools.lang.descr;
02:
03: import junit.framework.TestCase;
04:
05: public class AndDescrTest extends TestCase {
06:
07: public void testAddUnboundPatternsEtc() {
08: final AndDescr and = new AndDescr();
09: and.addDescr(new NotDescr());
10: and.addDescr(new PatternDescr("Foo"));
11: and.addDescr(new NotDescr());
12:
13: assertEquals(3, and.getDescrs().size());
14: }
15:
16: }
|