1 package org.apache.commons.configuration; 2 3 18 19 import java.io.File ; 20 21 import junit.framework.TestCase; 22 23 28 public class TestEqualsProperty extends TestCase 29 { 30 31 private String testProperties = new File ("conf/test.properties").getAbsolutePath(); 32 33 public void testEquals() throws Exception  34 { 35 PropertiesConfiguration conf = new PropertiesConfiguration(testProperties); 36 37 String equals = conf.getString("test.equals"); 38 assertEquals("value=one", equals); 39 } 40 } 41 | Popular Tags |