1 /**
2 * Copyright 2005-2006 the original author or authors.
3 *
4 * Licensed under the Gnu General Pubic License, Version 2.0 (the
5 * "License"); you may not use this file except in compliance with
6 * the License. You may obtain a copy of the License at
7 *
8 * http://www.opensource.org/licenses/gpl-license.php
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13 * See the Gnu General Public License for more details.
14 */
15 package org.figure8.join.businessfacades.environment;
16
17 import org.figure8.join.util.SpringTestCase;
18 import org.figure8.join.businessobjects.environment.Parameter;
19 import org.figure8.join.businessobjects.environment.ParameterValue;
20 /**
21 * JUnit test case for testing ParameterManager implementation.
22 * @author <a href="mailto:laurent.broudoux@free.fr">Laurent Broudoux</a>
23 * @version $Revision: 1.1 $
24 */
25 public class ParameterManagerTest extends SpringTestCase{
26
27
28
29 /** Spring configuration files */
30 private String[] configLocations = new String[]{
31 "classpath:/org/figure8/join/businessfacades/environment/spring.xml",
32 "classpath:/org/figure8/join/businessobjects/environment//persistence/spring.xml"};
33
34
35
36
37 /** The ParameterManager implementation instance to test. */
38 protected ParameterManager parameterManager = null;
39
40
41
42
43 /** Retrieve needed beans after having initialized context */
44 public void setUp(){
45 super.setUp();
46
47 parameterManager = (ParameterManager)context.getBean("parameterManager");
48 }
49
50
51
52
53 /** Test parameters related methods */
54 public void testParameters(){
55
56 }
57
58 /** Test parameter values related methods */
59 public void testParameterValues(){
60
61 }
62
63
64
65
66 /** @return An array of Spring config file locations */
67 public String[] getConfigLocations(){
68 return configLocations;
69 }
70 }