KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jbpm > bpel > xml > WaitReaderTest


1 package org.jbpm.bpel.xml;
2
3 import org.jbpm.bpel.def.Wait;
4
5 /**
6  * @author Juan Cantú
7  * @version $Revision: 1.4 $ $Date: 2005/06/16 19:15:35 $
8  */

9 public class WaitReaderTest extends AbstractReaderTestCase {
10   
11   public void testFor() throws Exception JavaDoc {
12     String JavaDoc xml = "<wait><for>$f</for></wait>";
13     Wait wait = (Wait) readActivity(xml);
14     assertEquals( "$f", wait.getAlarm().getFor().getText() );
15   }
16   
17   public void testUntil() throws Exception JavaDoc {
18     String JavaDoc xml = "<wait><until>$u</until></wait>";
19     Wait wait = (Wait) readActivity(xml);
20     assertEquals( "$u", wait.getAlarm().getUntil().getText() );
21   }
22 }
23
Popular Tags