1 /***
2 Copyright (C) 2005 The Java Community
3
4 This program is free software; you can redistribute it and/or modify it under
5 the terms of the GNU General Public License as published by the Free Software
6 Foundation; either version 2 of the License, or (at your option) any later
7 version.
8
9 This program is distributed in the hope that it will be useful, but WITHOUT
10 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11 FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12
13 You should have received a copy of the GNU General Public License along with
14 this program; if not, write to the Free Software Foundation, Inc., 59 Temple
15 Place, Suite 330, Boston, MA 02111-1307 USA.
16
17 */
18 package org.bejug.javacareers.jobs.common;
19
20
21 import org.apache.commons.logging.Log;
22 import org.apache.commons.logging.LogFactory;
23 import org.springframework.test.AbstractTransactionalDataSourceSpringContextTests;
24
25 /***
26 * This class is the parent for all tests using Spring.
27 *
28 * @author Bart Meyers (last modified by $Author: schauwvliege $)
29 * @version $Revision: 1.8 $ - $Date: 2005/09/13 08:11:06 $
30 */
31 public abstract class AbstractSpringContextTests extends
32 AbstractTransactionalDataSourceSpringContextTests {
33 /***
34 * the logger.
35 */
36 protected static final Log LOGGER =
37 LogFactory.getLog(AbstractSpringContextTests.class);
38
39 /***
40 * default constructor.
41 * Is necessary for the field-injection in the testcases.
42 * The flag populateProtectedVariables should be set to true to support the
43 * field-injection.
44 */
45 public AbstractSpringContextTests() {
46 super();
47
48 setPopulateProtectedVariables(true);
49 }
50
51
52 /***
53 * Returns a list of spring application contexts.
54 *
55 * @return the applicationContext for our application.
56 */
57 protected String[] getConfigLocations() {
58 return new String[]{"/org/bejug/javacareers/applicationContext-test.xml"};
59 }
60
61
62 }
63
64 /***
65 * $Log: AbstractSpringContextTests.java,v $
66 * Revision 1.8 2005/09/13 08:11:06 schauwvliege
67 * organize imports
68 *
69 * Revision 1.7 2005/08/16 09:09:19 bavo_jcs
70 * Replaced Log4j usage with Commons Logging
71 *
72 * Revision 1.6 2005/07/20 11:05:25 ge0ffrey
73 * JAVACAREERS-137
74 *
75 * Revision 1.5 2005/06/29 09:00:25 psong09
76 * comment component updated
77 *
78 * Revision 1.4 2005/06/14 12:05:54 schauwvliege
79 * CheckStyle and fixing tests
80 *
81 * Revision 1.3 2005/06/14 07:46:48 schauwvliege
82 * fixed broken tests
83 *
84 * Revision 1.2 2005/06/09 08:19:03 bejug_cc
85 * Fix initial import
86 *
87 * Revision 1.12 2005/06/06 14:13:23 bbr
88 * lowercased context files
89 *
90 * Revision 1.11 2005/05/31 13:30:49 bbr
91 * reorganized contexts for tests
92 *
93 * Revision 1.10 2005/05/25 11:05:28 ssc
94 * checkstyle
95 *
96 * Revision 1.8 2005/05/18 15:55:16 ssc
97 * Extracted DBUit test to new abstract testclass to increase testing speed for non DBUnit tests
98 *
99 * Revision 1.6 2005/05/18 08:32:13 bme
100 * introduced setup and teardown methods for dbunit
101 *
102 * Revision 1.5 2005/05/18 07:05:55 bme
103 * updated for dbunit
104 *
105 * Revision 1.4 2005/05/11 12:49:30 ssc
106 * Checstyle errors
107 *
108 * Revision 1.3 2005/05/04 09:53:26 bme
109 * modified for introduction AOP
110 *
111 * Revision 1.2 2005/04/29 07:10:03 PSONG09
112 * update
113 * Revision 1.1 2005/04/19 11:51:22
114 * PSONG09 First release
115 *
116 * Revision 1.1 2005/04/18 19:28:29 sja First release.
117 *
118 */