Package org.nutz.ioc.aop.config.impl

Source Code of org.nutz.ioc.aop.config.impl.XmlAopConfigrationTest

package org.nutz.ioc.aop.config.impl;

import static org.junit.Assert.assertNotNull;

import java.io.IOException;

import javax.xml.parsers.ParserConfigurationException;

import org.junit.Test;
import org.nutz.dao.impl.NutDao;
import org.nutz.ioc.aop.impl.DefaultMirrorFactory;
import org.nutz.ioc.impl.NutIoc;
import org.xml.sax.SAXException;

public class XmlAopConfigrationTest {

    @Test
    public void testGetMirror() throws ParserConfigurationException, SAXException, IOException {
        DefaultMirrorFactory mirrorFactory = new DefaultMirrorFactory(null);
        mirrorFactory.setAopConfigration(new XmlAopConfigration("org/nutz/ioc/aop/config/impl/xmlfile-aop.xml"));
        assertNotNull(mirrorFactory.getMirror(XmlAopConfigration.class, null));
        assertNotNull(mirrorFactory.getMirror(DefaultMirrorFactory.class, null));
        assertNotNull(mirrorFactory.getMirror(NutDao.class, null));
        assertNotNull(mirrorFactory.getMirror(NutIoc.class, null));
    }

}
TOP

Related Classes of org.nutz.ioc.aop.config.impl.XmlAopConfigrationTest

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.