1 2 package org.drools.reteoo.impl; 3 4 import org.drools.AssertionException; 5 import org.drools.spi.InstrumentedAction; 6 7 import junit.framework.TestCase; 8 9 import java.util.List; 10 11 public class TerminalNodeImplTest extends TestCase 12 { 13 public TerminalNodeImplTest(String name) 14 { 15 super( name ); 16 } 17 18 public void setUp() 19 { 20 } 21 22 public void tearDown() 23 { 24 } 25 26 public void testNothing() 27 { 28 } 29 30 /*** All Tuples asserted to a TerminalNode MUST be 31 * passed to the matching Action's invoke(..) method. 32 */ 33 /* 34 public void testAssertTuple() 35 { 36 InstrumentedAction action = new InstrumentedAction(); 37 TerminalNode node = new TerminalNode( null, 38 action ); 39 40 ReteTuple tuple = new ReteTuple(); 41 42 try 43 { 44 node.assertTuple( null, 45 tuple, 46 null ); 47 48 List invoked = action.getInvokedTuples(); 49 50 assertEquals( 1, 51 invoked.size() ); 52 53 assertSame( tuple, 54 invoked.get( 0 ) ); 55 } 56 catch (AssertionException e) 57 { 58 fail( e.toString() ); 59 } 60 } 61 */ 62 }

This page was automatically generated by Maven