KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > picocontainer > gems > util > ConstructablePropertiesTest


1 /*******************************************************************************
2  * Copyright (c) PicoContainer Organization. All rights reserved. *
3  * ------------------------------------------------------------------------- *
4  * The software in this package is published under the terms of the BSD * style
5  * license a copy of which has been included with this distribution in * the
6  * license.html file. * * Idea by Rachel Davies, Original code by Aslak Hellesoy
7  * and Paul Hammant *
8  ******************************************************************************/

9 package org.picocontainer.gems.util;
10
11 import java.util.Properties JavaDoc;
12
13 import junit.framework.TestCase;
14 /**
15  * test capabilities of constructable properties
16  * @author Konstantin Pribluda
17  */

18 public class ConstructablePropertiesTest extends TestCase {
19
20     public void testPropertiesLoading() throws Exception JavaDoc {
21
22         Properties JavaDoc properties = new ConstructableProperties("test.properties");
23         assertNotNull(properties);
24         assertEquals("bar", properties.getProperty("foo"));
25     }
26 }
Popular Tags