Examples of SimpleBean


Examples of org.jboss.test.proxyfactory.support.SimpleBean

*/
public class SimpleMetaDataTestCase extends AbstractProxyTest
{
   public void testSimpleMetaData() throws Exception
   {
      SimpleBean bean = new SimpleBean();
      SimpleMetaData metaData = new SimpleMetaData();
      metaData.addMetaData("Simple", "MetaData", "Value");
      Simple simple = (Simple) assertCreateProxy(bean, new Class[] { Simple.class }, metaData, Simple.class);
      SimpleInterceptor.invoked = null;
      simple.doSomething();
View Full Code Here

Examples of org.jboss.test.proxyfactory.support.SimpleBean

*/
public class TaggingInterfaceTestCase extends AbstractProxyTest
{
   public void testTagging() throws Exception
   {
      SimpleBean bean = new SimpleBean();
      Object tagging = assertCreateProxy(bean, new Class[] { Tagging.class }, Tagging.class);
      Simple simple = (Simple) tagging;
      SimpleInterceptor.invoked = null;
      simple.doSomething();
      assertTrue(bean.invoked);
View Full Code Here

Examples of org.jboss.test.proxyfactory.support.SimpleBean

*/
public class NonInterfaceNotAdvisedTestCase extends AbstractProxyTest
{
   public void testNotAdvised() throws Exception
   {
      SimpleBean bean = new SimpleBean();

      // Test non interface method isn't advised
      SimpleBean proxy = (SimpleBean) assertCreateProxy(bean, SimpleBean.class);
      SimpleInterceptor.invoked = null;
      proxy.doSomethingElse();
      assertNull(SimpleInterceptor.invoked);
     
      // But the interface should be advised
      proxy.doSomething();
      assertTrue(bean.invoked);
      Method invoked = SimpleInterceptor.invoked;
      assertNotNull(invoked);
      assertEquals("doSomething", invoked.getName());
   }
View Full Code Here

Examples of org.jboss.test.spring.support.SimpleBean

      return suite(InstantiateMixed2TestCase.class);
   }

   public void testInjection() throws Exception
   {
      SimpleBean simpleBean = (SimpleBean) getBean("testBean", ControllerState.INSTANTIATED);
      assertNotNull(simpleBean);
      OldBean oldBean = simpleBean.getRefBean();
      assertNotNull(oldBean);
      assertEquals(oldBean.getJavaBeanString(), "JavaBean");
   }
View Full Code Here

Examples of org.jboss.test.system.controller.integration.support.SimpleBean

      assertNotNull(beanContext);
      Object bean = beanContext.getTarget();
      assertNotNull(bean);
      assertTrue(bean instanceof SimpleBean);
     
      SimpleBean simpleBean = (SimpleBean) bean;
     
      Object injected = simpleBean.getSimple();
     
      assertTrue("MBean was not injected: ", mbean == injected);
   }
View Full Code Here

Examples of org.jboss.test.system.controller.integration.support.SimpleBean

      ControllerContext beanContext = getControllerContext("Test");
      assertNotNull(beanContext);
      Object bean = beanContext.getTarget();
      assertNotNull(bean);
      SimpleBean simpleBean = assertInstanceOf(SimpleBean.class, bean);
     
      assertEquals(1, simple.createOrder);
      assertEquals(2, simple.startOrder);
      assertEquals(3, simpleBean.createOrder);
      assertEquals(4, simpleBean.startOrder);
View Full Code Here

Examples of org.jboss.test.system.controller.integration.support.SimpleBean

      ControllerContext beanContext = getControllerContext("Test");
      assertNotNull(beanContext);
      Object bean = beanContext.getTarget();
      assertNotNull(bean);
      SimpleBean simpleBean = assertInstanceOf(SimpleBean.class, bean);
     
      assertEquals(2, simple.createOrder);
      assertEquals(4, simple.startOrder);
      assertEquals(1, simpleBean.createOrder);
      assertEquals(3, simpleBean.startOrder);
View Full Code Here

Examples of org.springmodules.javaspaces.gigaspaces.app.SimpleBean

    }

  public void testWriteTake() throws Exception{

    ISimpleDao dao = (ISimpleDao)applicationContext.getBean("simpleDAO");
    SimpleBean bean = new SimpleBean("zvika", 32);
    dao.writeSimple(bean);

    SimpleBean template = new SimpleBean("zvika", 32);
    SimpleBean taken = dao.takeIfExists(bean);

    assertEquals("written object is not equal to taken one!", bean, taken);
  }
View Full Code Here

Examples of pt.opensoft.beans.SimpleBean

    public SessionUser getSessionUser() {
        return sessionUser;
    }

    public String execute() throws Exception {
    return execute(new SimpleBean(), new FacesRequest(FacesContext.getCurrentInstance()));
  }
View Full Code Here

Examples of simpledao.SimpleBean

          }
         
        }

                // create the return bean
                SimpleBean newBean = bean.getClass().newInstance();
                newBean.populate( props );

                beanList.add( newBean );
            }
            ps.close();
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.