Package org.jtester.annotations

Examples of org.jtester.annotations.Tracer


    // @AutoInject生效时:@SpringBeanByName 和 @SpringBeanByType bean注册
    RegisterDynamicBean.dynamicRegisterBeanDefinition(beanFactory, testedClazz);

    // 是否定义bean输入输出跟踪日志
    boolean traceSpringBean = TracerModuleHelper.traceSpringBean();
    Tracer tracer = AnnotationUtils.getClassLevelAnnotation(Tracer.class, testedClazz);
    if ((tracer == null && traceSpringBean) || (tracer != null && tracer.spring())) {
      SpringModuleHelper.addTracerBeanDefinition(beanFactory);
    }
    return beanFactory;
  }
View Full Code Here


  }

  protected class TracerTestListener extends TestListener {
    @Override
    public void beforeMethodRunning(Object testObject, Method testMethod) {
      Tracer tracer = AnnotationUtils.getMethodOrClassLevelAnnotation(Tracer.class, testMethod,
          testObject.getClass());
      TracerManager.startTracer(tracer, testObject.getClass(), testMethod);
    }
View Full Code Here

TOP

Related Classes of org.jtester.annotations.Tracer

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.