/*
* Created on 23.07.2003
*
* To change the template for this generated file go to
* Window>Preferences>Java>Code Generation>Code and Comments
*/
package org.jconfig.parser;
import junit.framework.TestCase;
import org.jconfig.Configuration;
import org.jconfig.ConfigurationManager;
/**
* test cases for the new category object
* these tests are an extension of the existing test
* cases used in the ConfigurationTest
*
* @since 2.2
* @author Andreas Mecky <andreas.mecky@xcom.de>
* @author Terry Dye <terry.dye@xcom.de>
*/
public class AdvancedConfigParserTest extends TestCase {
public AdvancedConfigParserTest(String arg0) {
super(arg0);
}
public static void main(String[] args) {
junit.textui.TestRunner.run(AdvancedConfigParserTest.class);
}
public void testParseAdvancedConfig() {
System.setProperty("jconfig.parser","org.jconfig.parser.AdvancedConfigParser");
Configuration config = ConfigurationManager.getConfiguration("advanced");
String world = config.getProperty("hello");
assertEquals("world",world);
}
}