01: package org.obe.test.internal;
02:
03: import java.util.Properties;
04: import junit.framework.Test;
05: import org.apache.commons.logging.Log;
06: import org.apache.commons.logging.LogFactory;
07: import org.obe.server.j2ee.repository.EJBInstanceRepository;
08: import org.obe.server.j2ee.repository.EJBProcessRepository;
09: import org.obe.spi.service.ServiceManager;
10: import org.obe.test.ProcessRepositoryTest;
11:
12: /**
13: * Tests the EJBProcessRepository.
14: *
15: * @author Adrian Price
16: */
17: public class EJBProcessRepositoryTest extends ProcessRepositoryTest {
18: private static final Log _logger = LogFactory
19: .getLog(EJBProcessRepositoryTest.class);
20: private static final Properties _svcMgrProps = new Properties();
21:
22: static {
23: _svcMgrProps.setProperty(ServiceManager.PROCESS_REPOSITORY_TAG,
24: EJBProcessRepository.class.getName());
25: _svcMgrProps.setProperty(
26: ServiceManager.INSTANCE_REPOSITORY_TAG,
27: EJBInstanceRepository.class.getName());
28: }
29:
30: public static Test suite() {
31: return cactusSuite(EJBProcessRepositoryTest.class, TESTS);
32: }
33:
34: public EJBProcessRepositoryTest(String name) {
35: super (name, _svcMgrProps);
36: _runTestInTransaction = true;
37: }
38:
39: protected Log getLogger() {
40: return _logger;
41: }
42: }
|