configparserfactorytest.java

来自「jConfig,JAVA读取XML的开源项目」· Java 代码 · 共 37 行

JAVA
37
字号
/*
 * 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;
/**
 * 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 ConfigParserFactoryTest extends TestCase {
	
	public ConfigParserFactoryTest(String arg0) {
		super(arg0);
	}

	public static void main(String[] args) {
		junit.textui.TestRunner.run(ConfigParserFactoryTest.class);
	}
	
	public void testParseNestedConfig() {
            ConfigurationParser parser = ConfigurationParserFactory.getParser("stupidtest");
            assertEquals("org.jconfig.parser.CDataConfigParser",parser.getClass().getName());            
            parser = ConfigurationParserFactory.getParser("nested");
            assertEquals("org.jconfig.parser.NestedConfigParser",parser.getClass().getName());
        }

}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?