1 25 package org.objectweb.easybeans.tests.common.ejbs.stateless.containermanaged.callbacklogger; 26 27 import static org.objectweb.easybeans.tests.common.helper.EJBHelper.getBeanRemoteInstance; 28 29 import java.util.ArrayList ; 30 import java.util.List ; 31 32 import org.objectweb.easybeans.tests.common.ejbs.entity.callbacklogger.CallbackType; 33 import org.objectweb.easybeans.tests.common.ejbs.entity.callbacklogger.OperationType; 34 35 41 public class OperationChecker { 42 43 46 private ItfOperationLoggerAccess opLog; 47 48 49 53 public OperationChecker() throws Exception { 54 opLog = getBeanRemoteInstance(SLSBOperationLoggerAccess.class, ItfOperationLoggerAccess.class); 55 } 56 57 63 public void check(final String className, final CallbackType event, final OperationType operationType) { 64 65 List <String > arEvent = new ArrayList <String >(); 67 68 arEvent.add(className); 69 70 this.check(className, event, arEvent, operationType); 71 } 72 73 82 public void check(final String className, final CallbackType event, final List <String > eventClassNames, 83 final OperationType operationType) { 84 opLog.verifyOperation(className, event, eventClassNames.toArray(new String [0]), operationType); 85 } 86 87 91 public void deleteAll() throws Exception { 92 opLog.deleteAll(); 93 } 94 } 95 | Popular Tags |