01: /**********************************************************************************
02: *
03: * $Id: GradeMappingConfigTest.java 17717 2006-10-31 22:42:03Z ray@media.berkeley.edu $
04: *
05: ***********************************************************************************
06: *
07: * Copyright (c) 2006 The Regents of the University of California
08: *
09: * Licensed under the Educational Community License Version 1.0 (the "License");
10: * By obtaining, using and/or copying this Original Work, you agree that you have read,
11: * understand, and will comply with the terms and conditions of the Educational Community License.
12: * You may obtain a copy of the License at:
13: *
14: * http://www.opensource.org/licenses/ecl1.php
15: *
16: * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
17: * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE
18: * AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
19: * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20: * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21: *
22: **********************************************************************************/package org.sakaiproject.tool.gradebook.test;
23:
24: import org.apache.commons.logging.Log;
25: import org.apache.commons.logging.LogFactory;
26:
27: /**
28: * This subclass of the GradeMappingTest tests the case in which
29: * a fresh Gradebook DB has been created and the GradebookService
30: * bean hasn't been configured to defined grading scales. What
31: * should happen is that default scales will be defined based on the
32: * old hard-coded GradeMapping classes.
33: *
34: * This test needs to run before any other unit tests, as they will
35: * muddy the test DB environment with cleanly defined grading scales.
36: */
37: public class GradeMappingConfigTest extends GradeMappingTest {
38: private static Log log = LogFactory
39: .getLog(GradeMappingConfigTest.class);
40:
41: protected String[] getConfigLocations() {
42: String[] configLocations = {
43: "spring-db.xml",
44: "spring-beans.xml",
45: "spring-facades.xml",
46:
47: // Use the standard vanilla service definition, without
48: // any grading scale definitions.
49: "spring-service.xml",
50:
51: "spring-hib.xml",
52: "spring-beans-test.xml",
53: "spring-hib-test.xml",
54:
55: // SectionAwareness integration support.
56: "classpath*:org/sakaiproject/component/section/support/spring-integrationSupport.xml",
57: "classpath*:org/sakaiproject/component/section/spring-beans.xml",
58: "classpath*:org/sakaiproject/component/section/spring-services.xml", };
59: return configLocations;
60: }
61: }
|