test_class.declarator: xmlApplicationConfigParser = new XmlApplicationConfigParser()
test_class.modifier: private
test_class.original_string: private XmlApplicationConfigParser xmlApplicationConfigParser = new XmlApplicationConfigParser();
test_class.type: XmlApplicationConfigParser
test_class.var_name: xmlApplicationConfigParser
test_class.file: tavern-core/src/test/java/com/dianping/tavern/config/XmlApplicationConfigParserTest.java
test_class.identifier: XmlApplicationConfigParserTest
test_case.body: @Test
      public void testParser(){
          InputStream resourceAsStream = getClass().getClassLoader().getResourceAsStream("app.xml");
          ApplicationConfig config = xmlApplicationConfigParser.parse(resourceAsStream);
          assertEquals("tavern", config.getName());
          assertEquals("classpath*:spring/appcontext-*.xml", config.getContextPath());
          assertEquals("com.dianping.tavern", config.getPackageBase());
          assertNull(config.getParent());
      }
test_case.class_method_signature: XmlApplicationConfigParserTest.testParser()
test_case.full_signature: @Test public void testParser()
test_case.identifier: testParser
test_case.invocations: getResourceAsStream getClassLoader getClass parse assertEquals getName assertEquals getContextPath assertEquals getPackageBase assertNull getParent
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testParser()
focal_class.declarator: fiedlds = new String[] { "name", "packageBase", "parent", "contextPath" }
focal_class.modifier: private
focal_class.original_string: private String[] fiedlds = new String[] { "name", "packageBase", "parent", "contextPath" };
focal_class.type: String[]
focal_class.var_name: fiedlds
focal_class.file: tavern-core/src/main/java/com/dianping/tavern/config/XmlApplicationConfigParser.java
focal_class.identifier: XmlApplicationConfigParser
focal_class.interfaces: implements ApplicationConfigParser
focal_class.class_method_signature: XmlApplicationConfigParser.parse(InputStream inputStream)
focal_class.full_signature: @Override public ApplicationConfig parse(InputStream inputStream)
focal_class.identifier: parse
focal_class.modifiers: @Override public
focal_class.parameters: (InputStream inputStream)
focal_class.return: ApplicationConfig
focal_class.signature: ApplicationConfig parse(InputStream inputStream)
focal_method.body: @Override
  	public ApplicationConfig parse(InputStream inputStream) {
  		Digester digester = new Digester();
  		digester.addObjectCreate("Application", ApplicationConfig.class);
          for (String filed : fiedlds) {
              digester.addBeanPropertySetter("Application/"+filed);
          }
          try {
  			return (ApplicationConfig) digester.parse(inputStream);
  		} catch (IOException e) {
  			e.printStackTrace();
  		} catch (SAXException e) {
  			e.printStackTrace();
  		}
  		return null;
  	}
focal_method.class_method_signature: XmlApplicationConfigParser.parse(InputStream inputStream)
focal_method.full_signature: @Override public ApplicationConfig parse(InputStream inputStream)
focal_method.identifier: parse
focal_method.invocations: addObjectCreate addBeanPropertySetter parse printStackTrace printStackTrace
focal_method.modifiers: @Override public
focal_method.parameters: (InputStream inputStream)
focal_method.return: ApplicationConfig
focal_method.signature: ApplicationConfig parse(InputStream inputStream)