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.InstanceRepositoryTest;
11:
12: /**
13: * Tests the EJBInstanceRepository. This version uses whatever repositories
14: * are configured in the server.
15: *
16: * @author Adrian Price
17: */
18: public class EJBInstanceRepositoryTest extends InstanceRepositoryTest {
19: private static final Log _logger = LogFactory
20: .getLog(EJBInstanceRepositoryTest.class);
21: private static final Properties _svcMgrProps = new Properties();
22:
23: static {
24: _svcMgrProps.setProperty(ServiceManager.PROCESS_REPOSITORY_TAG,
25: EJBProcessRepository.class.getName());
26: _svcMgrProps.setProperty(
27: ServiceManager.INSTANCE_REPOSITORY_TAG,
28: EJBInstanceRepository.class.getName());
29: }
30:
31: public static Test suite() {
32: return cactusSuite(EJBInstanceRepositoryTest.class, TESTS);
33: }
34:
35: public EJBInstanceRepositoryTest(String name) {
36: super (name, _svcMgrProps);
37: _runTestInTransaction = true;
38: }
39:
40: protected Log getLogger() {
41: return _logger;
42: }
43: }
|