Package org.jboss.test.microcontainer.support

Examples of org.jboss.test.microcontainer.support.PropertyBean


    *
    * @throws Exception for any error
    */
   public void testBeanMetaData() throws Exception
   {
      PropertyBean bean = (PropertyBean)getBean("Bean");

      MetaDataContextInterceptor.reset();
      assertEquals(5, bean.getIntProperty());
      assertNotNull(MetaDataContextInterceptor.classAnnotation);
      assertNull(MetaDataContextInterceptor.joinpointAnnotation);

      MetaDataContextInterceptor.reset();
      assertEquals("Bean", bean.getStringProperty());
      assertNotNull(MetaDataContextInterceptor.classAnnotation);
      assertNull(MetaDataContextInterceptor.joinpointAnnotation);
   }
View Full Code Here


    * @throws Exception for any error
    */
   public void testPropertyMetaData() throws Exception
   {
     
      PropertyBean bean1 = (PropertyBean)getBean("Bean1");

      MetaDataContextInterceptor.reset();
      assertEquals(10, bean1.getIntProperty());
      assertNull(MetaDataContextInterceptor.classAnnotation);
      assertNotNull(MetaDataContextInterceptor.joinpointAnnotation);
     
      MetaDataContextInterceptor.reset();
      assertEquals("Bean1", bean1.getStringProperty());
      assertNull(MetaDataContextInterceptor.classAnnotation);
      assertNull(MetaDataContextInterceptor.joinpointAnnotation);
   }
View Full Code Here

    * @throws Exception for any error
    */
   public void testNoMetaData() throws Exception
   {
     
      PropertyBean bean1 = (PropertyBean)getBean("NoMetaDataBean");

      MetaDataContextInterceptor.reset();
      assertEquals(50, bean1.getIntProperty());
      assertNull(MetaDataContextInterceptor.classAnnotation);
      assertNull(MetaDataContextInterceptor.joinpointAnnotation);
     
      MetaDataContextInterceptor.reset();
      assertEquals("NoMetaDataBean", bean1.getStringProperty());
      assertNull(MetaDataContextInterceptor.classAnnotation);
      assertNull(MetaDataContextInterceptor.joinpointAnnotation);
   }
View Full Code Here

TOP

Related Classes of org.jboss.test.microcontainer.support.PropertyBean

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.