1
2 package org.drools;
3
4 import junit.framework.TestCase;
5
6 public class RuleBaseTest extends TestCase
7 {
8 private RuleBase ruleBase;
9
10 public RuleBaseTest(String name)
11 {
12 super( name );
13 }
14
15 public void setUp()
16 {
17 this.ruleBase = new RuleBase();
18 }
19
20 public void tearDown()
21 {
22 this.ruleBase = null;
23 }
24
25 public void testCreateWorkingMemory()
26 {
27 WorkingMemory memory = this.ruleBase.createWorkingMemory();
28
29 assertNotNull( memory );
30
31 assertSame( this.ruleBase,
32 memory.getRuleBase() );
33 }
34
35 public void testCreateTransactionalWorkingMemory()
36 {
37 TransactionalWorkingMemory memory = this.ruleBase.createTransactionalWorkingMemory();
38
39 assertNotNull( memory );
40
41 assertSame( this.ruleBase,
42 memory.getRuleBase() );
43 }
44 }
This page was automatically generated by Maven