01: package org.obe.test.standalone;
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.engine.persistence.memory.BasicInstanceRepository;
08: import org.obe.engine.persistence.memory.BasicProcessRepository;
09: import org.obe.spi.service.ServiceManager;
10: import org.obe.test.InstanceRepositoryTest;
11:
12: /**
13: * Tests the BasicInstanceRepository.
14: *
15: * @author Adrian Price
16: */
17: public class BasicInstanceRepositoryTest extends InstanceRepositoryTest {
18: private static final Log _logger = LogFactory
19: .getLog(BasicInstanceRepositoryTest.class);
20: private static final Properties _svcMgrProps = new Properties();
21:
22: static {
23: _svcMgrProps.setProperty(ServiceManager.PROCESS_REPOSITORY_TAG,
24: BasicProcessRepository.class.getName());
25: _svcMgrProps.setProperty(
26: ServiceManager.INSTANCE_REPOSITORY_TAG,
27: BasicInstanceRepository.class.getName());
28: }
29:
30: public static Test suite() {
31: return junitSuite(BasicInstanceRepositoryTest.class, TESTS);
32: }
33:
34: public BasicInstanceRepositoryTest(String name) {
35: super (name, _svcMgrProps);
36: }
37:
38: protected Log getLogger() {
39: return _logger;
40: }
41: }
|