01: package org.drools.compiler;
02:
03: import junit.framework.TestCase;
04:
05: public class RuleFlowErrorTest extends TestCase {
06:
07: public void testError() {
08: RuleFlowLoadError err = new RuleFlowLoadError("XXX", null);
09: assertEquals("XXX", err.getMessage());
10:
11: Exception e = new RuntimeException("Q");
12: err = new RuleFlowLoadError("X", e);
13:
14: assertNotNull(err.getMessage());
15:
16: assertTrue(err instanceof DroolsError);
17:
18: }
19:
20: }
|