1 | package edu.iu.uis.sit.portal; |
2 | |
3 | import org.apache.ojb.broker.PersistenceBroker; |
4 | import org.apache.ojb.broker.PersistenceBrokerFactory; |
5 | import org.springframework.orm.ojb.OjbFactoryUtils; |
6 | import org.springframework.test.AbstractTransactionalDataSourceSpringContextTests; |
7 | |
8 | public class PersistenceBrokerAbstractTransactionalDataSourceSpringContextTests extends AbstractTransactionalDataSourceSpringContextTests { |
9 | |
10 | public PersistenceBrokerAbstractTransactionalDataSourceSpringContextTests() { |
11 | super(); |
12 | } |
13 | |
14 | protected String[] getConfigLocations() { |
15 | return new String[] { "SpringBeans.xml", "TestSpringDataSource.xml", "context/applicationContext.xml", "context/groups.xml", "context/admin.xml", "context/publishing.xml" }; |
16 | } |
17 | |
18 | public PersistenceBroker getPersistenceBroker() { |
19 | return OjbFactoryUtils.getPersistenceBroker(PersistenceBrokerFactory.getDefaultKey(), false); |
20 | } |
21 | |
22 | } |