1 package org.jbpm.bpel.xml; 2 3 import org.jbpm.bpel.def.Receive; 4 8 public class ReceiveReaderTest extends AbstractReaderTestCase { 9 10 public void setUp() throws Exception { 11 super.setUp(); 12 initMessageProperties(); 13 } 14 15 public void testCreateInstanceYes() throws Exception { 16 String xml = 17 "<receive partnerLink='aPartner' operation='o' variable='iv'" + 18 " createInstance='yes'/>"; 19 20 Receive receive = (Receive) readActivity(xml); 21 assertEquals(true, receive.isCreateInstance()); 22 } 23 24 public void testCreateInstanceNo() throws Exception { 25 String xml = 26 "<receive partnerLink='aPartner' operation='o' variable='iv'" + 27 " createInstance='no'/>"; 28 29 Receive receive = (Receive) readActivity(xml); 30 assertEquals(false, receive.isCreateInstance()); 31 } 32 33 public void testCreateInstanceDefault() throws Exception { 34 String xml = "<receive partnerLink='aPartner' operation='o' variable='iv'/>"; 35 36 Receive receive = (Receive) readActivity(xml); 37 assertEquals(false, receive.isCreateInstance()); 38 } 39 } 40 | Popular Tags |