Package org.jboss.spring.test.ear.pojo

Examples of org.jboss.spring.test.ear.pojo.Tester


   private void testInjection(String type) throws Exception
   {
      SessionTestBean testBean = (SessionTestBean) getInitialContext().
            lookup("spring-test/SessionTestBeanImpl/" + type);
      Tester tester = testBean.getTester();
      if (tester == null)
      {
         throw new RuntimeException("Tester should be injected!!");
      }
      assertEquals(tester.getIntegerValue(), 1);
      assertEquals(tester.getStringValue(), "Ales");
   }
View Full Code Here

TOP

Related Classes of org.jboss.spring.test.ear.pojo.Tester

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.