Package us.codecraft.tinyioc.beans.xml

Source Code of us.codecraft.tinyioc.beans.xml.XmlBeanDefinitionReaderTest

package us.codecraft.tinyioc.beans.xml;

import org.junit.Assert;
import org.junit.Test;
import us.codecraft.tinyioc.beans.BeanDefinition;
import us.codecraft.tinyioc.beans.io.ResourceLoader;

import java.util.Map;

/**
* @author yihua.huang@dianping.com
*/
public class XmlBeanDefinitionReaderTest {

  @Test
  public void test() throws Exception {
    XmlBeanDefinitionReader xmlBeanDefinitionReader = new XmlBeanDefinitionReader(new ResourceLoader());
    xmlBeanDefinitionReader.loadBeanDefinitions("tinyioc.xml");
    Map<String, BeanDefinition> registry = xmlBeanDefinitionReader.getRegistry();
    Assert.assertTrue(registry.size() > 0);
  }
}
TOP

Related Classes of us.codecraft.tinyioc.beans.xml.XmlBeanDefinitionReaderTest

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.