1 22 package org.jboss.test.messagedriven.support; 23 24 import javax.management.ObjectName ; 25 26 32 public class ActivateOperation extends Operation 33 { 34 protected ObjectName mdbInvoker; 35 36 public ActivateOperation(BasicMessageDrivenUnitTest test, ObjectName mdbInvoker) 37 { 38 super(test); 39 this.mdbInvoker = mdbInvoker; 40 } 41 42 public void run() throws Exception  43 { 44 test.activate(mdbInvoker); 45 if (Boolean.FALSE.equals(test.getAttribute(mdbInvoker, "DeliveryActive"))) 46 throw new Exception ("Failed to activate: " + mdbInvoker); 47 } 48 } 49 | Popular Tags |