Package tests.jfun.yan.benchmark.models

Examples of tests.jfun.yan.benchmark.models.Soo


    new Benchmark("Spring: Create bean with bytype autowiring and Setter Dependency Injection", LOOP){
      public void run() throws Exception {
        factory.getBean("auto_soo");
      }
    }.start(true);
    Soo soo = (Soo)factory.getBean("auto_soo");
    assertNotNull(soo.getBar());
  }
View Full Code Here


    new Benchmark("Spring: Create singleton bean with Setter Dependency Injection", LOOP*10){
      public void run() throws Exception {
        factory.getBean("ssoo");
      }
    }.start(true);
    Soo soo = (Soo)factory.getBean("ssoo");
    assertNotNull(soo.getBar());
  }
View Full Code Here

      public void run() throws Exception {
        yan.getInstance("foo0");
      }
    }.start(true);
   
    Soo soo = (Soo)yan.getInstance("soo");
    assertNotNull(soo.getBar());
  }
View Full Code Here

TOP

Related Classes of tests.jfun.yan.benchmark.models.Soo

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.