Package org.jboss.test.aop.mcjndi

Examples of org.jboss.test.aop.mcjndi.PojoInterface


   }

   public void testAnnotated() throws Exception
   {
      Context ctx = getInitialContext();
      PojoInterface pojo = (PojoInterface)ctx.lookup(AnnotatedPojo.NAME);
      pojo.setProperty(39);
      assertEquals(39, pojo.getProperty());
     
      Object ret = pojo.someAction();
      assertEquals("JNDI-Annotated-39", ret);
   }
View Full Code Here


   }
  
   public void testXml() throws Exception
   {
      Context ctx = getInitialContext();
      PojoInterface pojo = (PojoInterface)ctx.lookup("pojo/XmlBean");
      pojo.setProperty(49);
      assertEquals(49, pojo.getProperty());
     
      Object ret = pojo.someAction();
      assertEquals("JNDI-XML-49", ret);     
   }
View Full Code Here

TOP

Related Classes of org.jboss.test.aop.mcjndi.PojoInterface

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.