1 package org.apache.commons.configuration; 2 3 18 19 import java.util.List ; 20 21 import junit.framework.TestCase; 22 23 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 42 public void testList1() throws Exception 43 { 44 List packages = conf.getList("test.threesome.one"); 45 assertEquals(3, packages.size()); 47 } 48 49 52 public void testList2() throws Exception 53 { 54 List packages = conf.getList("test.threesome.two"); 55 assertEquals(3, packages.size()); 57 } 58 59 62 public void testList3() throws Exception 63 { 64 List packages = conf.getList("test.threesome.three"); 65 assertEquals(3, packages.size()); 67 } 68 69 } 70 | Popular Tags |