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.io.File;
20
21 import junit.framework.TestCase;
22
23 /***
24 * test if properties that contain a "=" will be loaded correctly.
25 *
26 * @version $Id: TestEqualsProperty.java 155408 2005-02-26 12:56:39Z dirkv $
27 */
28 public class TestEqualsProperty extends TestCase
29 {
30 /*** The File that we test with */
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 }