Examples of JTesterSpringContext


Examples of org.jtester.module.spring.JTesterSpringContext

        }
    }

    @Override
    public JTesterSpringContext createApplicationContext(List<String> locations, boolean ignoreNoSuchBean) {
        JTesterSpringContext c = new JTesterxSpringContext(locations.toArray(new String[0]), false, null,
                                                           ignoreNoSuchBean);

        TracerBeanManager.clear();
        return c;
    }
View Full Code Here

Examples of org.jtester.module.spring.JTesterSpringContext

    long startTime = System.currentTimeMillis();

    String[] locations = annotation.value();
    boolean ignoreNoSuchBean = annotation.ignoreNoSuchBean();
    JTesterSpringContext context = contextFactory.createApplicationContext(Arrays.asList(locations),
        ignoreNoSuchBean);

    context.refresh();
    long duration = System.currentTimeMillis() - startTime;
    JTesterLogger.warn(String.format("take %d ms to init spring context for test obejct[%s]", duration,
        testClazz.getName()));

    beanFactory = context.getJTesterBeanFactory();
    TestedObject.setSpringContext(beanFactory);
    return beanFactory;
  }
View Full Code Here
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.