KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > antmod > conf > AntmodPropertiesTest


1 package org.antmod.conf;
2
3 import junit.framework.TestCase;
4
5 /**
6  * JUnit test for properties class.
7  */

8 public class AntmodPropertiesTest extends TestCase {
9
10     public void testLoading() {
11         String JavaDoc relDir = AntmodProperties.getProperty("antmod.descriptor.xml.localdir");
12         assertNotNull(relDir);
13
14         boolean containsVar = relDir.indexOf("${") >= 0;
15         assertFalse("antmod.descriptor.xml.localdir property still contains variable (\"" + relDir + "\"", containsVar);
16     }
17 }
18
Popular Tags