1 package org.jbpm.bpel.xml; 2 3 import org.jbpm.bpel.def.Wait; 4 5 9 public class WaitReaderTest extends AbstractReaderTestCase { 10 11 public void testFor() throws Exception { 12 String 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 { 18 String xml = "<wait><until>$u</until></wait>"; 19 Wait wait = (Wait) readActivity(xml); 20 assertEquals( "$u", wait.getAlarm().getUntil().getText() ); 21 } 22 } 23 | Popular Tags |