Package atunit.spring

Examples of atunit.spring.Context


    protected void loadBeanDefinitions(Class<?> testClass, BeanDefinitionRegistry registry) {
        XmlBeanDefinitionReader xml = new XmlBeanDefinitionReader(registry);

        String resourceName = testClass.getSimpleName() + ".xml";
        Context ctxAnno = testClass.getAnnotation(Context.class);
        if (ctxAnno != null) {
            resourceName = ctxAnno.value();
        }
        URL xmlUrl = testClass.getResource(resourceName);
        if (xmlUrl != null) {
            xml.loadBeanDefinitions(new UrlResource(xmlUrl));
        } else if (ctxAnno != null) {
View Full Code Here


  protected void loadBeanDefinitions(Class<?> testClass, BeanDefinitionRegistry registry) {
    XmlBeanDefinitionReader xml = new XmlBeanDefinitionReader(registry);

    String resourceName = testClass.getSimpleName() + ".xml";
    Context ctxAnno = testClass.getAnnotation(Context.class);
    if ( ctxAnno != null ) {
      resourceName = ctxAnno.value();
    }
    URL xmlUrl = testClass.getResource(resourceName);
    if ( xmlUrl != null ) {
      xml.loadBeanDefinitions(new UrlResource(xmlUrl));
    } else if ( ctxAnno != null) {
View Full Code Here

TOP

Related Classes of atunit.spring.Context

Copyright © 2018 www.massapicom. 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.