01: /**********************************************************************************
02: *
03: * $Id: GradebookLoaderBase.java 9271 2006-05-10 21:52:49Z ray@media.berkeley.edu $
04: *
05: ***********************************************************************************
06: *
07: * Copyright (c) 2005 The Regents of the University of California, The MIT Corporation
08: *
09: * Licensed under the Educational Community License, Version 1.0 (the "License");
10: * you may not use this file except in compliance with the License.
11: * You may obtain a copy of the License at
12: *
13: * http://www.opensource.org/licenses/ecl1.php
14: *
15: * Unless required by applicable law or agreed to in writing, software
16: * distributed under the License is distributed on an "AS IS" BASIS,
17: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18: * See the License for the specific language governing permissions and
19: * limitations under the License.
20: *
21: **********************************************************************************/package org.sakaiproject.tool.gradebook.test;
22:
23: import org.apache.commons.logging.Log;
24: import org.apache.commons.logging.LogFactory;
25:
26: /**
27: * Base class for data loading. Unlike the standard suite of tests which are run
28: * against a standalone implmentations of the facades, this uses the facades implementation
29: * defined for the build.
30: */
31: public abstract class GradebookLoaderBase extends GradebookTestBase {
32: private static Log log = LogFactory
33: .getLog(GradebookLoaderBase.class);
34:
35: protected String[] getConfigLocations() {
36: String[] configLocations = {
37: "spring-db.xml",
38: "spring-beans.xml",
39: "spring-facades.xml",
40: "spring-service.xml",
41: "spring-hib.xml",
42: "spring-beans-test.xml",
43: "spring-hib-test.xml",
44: /* SectionAwareness integration support. */
45: "classpath*:org/sakaiproject/component/section/support/spring-integrationSupport.xml",
46: /*
47: We could just go with
48: "classpath*:org/sakaiproject/component/section/spring-*.xml"
49: except that for now we need to strip away a transactionManager defined
50: in section/spring-hib.xml.
51: */
52: "classpath*:org/sakaiproject/component/section/spring-beans.xml",
53: "classpath*:org/sakaiproject/component/section/spring-services.xml", };
54: return configLocations;
55: }
56: }
|