1 package org.apache.commons.configuration;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 import java.util.List;
20
21 import junit.framework.TestCase;
22
23 /***
24 * A base class for testing {@link
25 * org.apache.commons.configuration.BasePropertiesConfiguration}
26 * extensions.
27 *
28 * @version $Id: TestThreesomeConfiguration.java 155408 2005-02-26 12:56:39Z dirkv $
29 */
30 public class TestThreesomeConfiguration extends TestCase
31 {
32 protected Configuration conf = null;
33
34 protected void setUp() throws Exception
35 {
36 conf = new PropertiesConfiguration("threesome.properties");
37 }
38
39 /***
40 * Tests <code>List</code> parsing.
41 */
42 public void testList1() throws Exception
43 {
44 List packages = conf.getList("test.threesome.one");
45
46 assertEquals(3, packages.size());
47 }
48
49 /***
50 * Tests <code>List</code> parsing.
51 */
52 public void testList2() throws Exception
53 {
54 List packages = conf.getList("test.threesome.two");
55
56 assertEquals(3, packages.size());
57 }
58
59 /***
60 * Tests <code>List</code> parsing.
61 */
62 public void testList3() throws Exception
63 {
64 List packages = conf.getList("test.threesome.three");
65
66 assertEquals(3, packages.size());
67 }
68
69 }