org.drools.smf
Class SMFTestFrameWork

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.drools.smf.SMFTestFrameWork
All Implemented Interfaces:
junit.framework.Test

public abstract class SMFTestFrameWork
extends junit.framework.TestCase

 

Nested Class Summary
static class SMFTestFrameWork.Cheese
          Simple nested class used with testing
 
Constructor Summary
SMFTestFrameWork(java.lang.String name)
           
 
Method Summary
static boolean conditionExceptionTest()
           
static void consequenceExceptionTest()
           
 void setUp(java.lang.String semantic, java.util.Set imports)
          Reads in the specified data file and extracts to a List of tests using the delimter
 void testConditions()
          Tests each of the extracted tests from conditions.data
 void testConsequences()
          Tests each of the extracted tests from consequences.data
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SMFTestFrameWork

public SMFTestFrameWork(java.lang.String name)
Method Detail

setUp

public void setUp(java.lang.String semantic,
                  java.util.Set imports)
           throws java.lang.Exception
Reads in the specified data file and extracts to a List of tests using the delimter

Throws:
java.lang.Exception

testConditions

public void testConditions()
                    throws java.lang.Exception
Tests each of the extracted tests from conditions.data

Throws:
java.lang.Exception

testConsequences

public void testConsequences()
                      throws java.lang.Exception
Tests each of the extracted tests from consequences.data

Throws:
java.lang.Exception

conditionExceptionTest

public static boolean conditionExceptionTest()
                                      throws java.lang.Exception
Throws:
java.lang.Exception

consequenceExceptionTest

public static void consequenceExceptionTest()
                                     throws java.lang.Exception
Throws:
java.lang.Exception