01: /**********************************************************************************
02: * $URL: https://source.sakaiproject.org/svn/sections/tags/sakai_2-4-1/sections-impl/integration-test/src/test/org/sakaiproject/test/section/SectionIntegrationTestSuite.java $
03: * $Id: SectionIntegrationTestSuite.java 18494 2006-11-28 17:59:21Z jholtzman@berkeley.edu $
04: ***********************************************************************************
05: *
06: * Copyright (c) 2006 The Sakai Foundation.
07: *
08: * Licensed under the Educational Community License, Version 1.0 (the "License");
09: * you may not use this file except in compliance with the License.
10: * You may obtain a copy of the License at
11: *
12: * http://www.opensource.org/licenses/ecl1.php
13: *
14: * Unless required by applicable law or agreed to in writing, software
15: * distributed under the License is distributed on an "AS IS" BASIS,
16: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17: * See the License for the specific language governing permissions and
18: * limitations under the License.
19: *
20: **********************************************************************************/package org.sakaiproject.test.section;
21:
22: import org.apache.commons.logging.Log;
23: import org.apache.commons.logging.LogFactory;
24: import org.sakaiproject.test.SakaiTestBase;
25:
26: import junit.extensions.TestSetup;
27: import junit.framework.Test;
28: import junit.framework.TestSuite;
29:
30: public class SectionIntegrationTestSuite extends SakaiTestBase {
31:
32: private static final Log log = LogFactory
33: .getLog(SectionIntegrationTestSuite.class);
34:
35: /**
36: * Runs only once for the entire TestSuite, so we can keep the same component manager
37: * rather than rebuilding it for each test case.
38: *
39: * @return
40: */
41: public static Test suite() {
42: TestSuite suite = new TestSuite();
43: suite.addTestSuite(SectionAwarenessImplTest.class);
44: suite.addTestSuite(CourseManagementIntegrationTest.class);
45: TestSetup setup = new TestSetup(suite) {
46: protected void setUp() throws Exception {
47: log.debug("starting setup");
48: oneTimeSetup();
49: log.debug("finished setup");
50: }
51:
52: protected void tearDown() throws Exception {
53: oneTimeTearDown();
54: }
55: };
56: return setup;
57: }
58:
59: }
|