Package org.jboss.test.kernel.config.support

Examples of org.jboss.test.kernel.config.support.SimpleBean


      super(name, xmltest);
   }

   public void testSimpleInstantiateFromFactory() throws Throwable
   {
      SimpleBean bean = simpleInstantiateFromFactory();
      assertEquals("createSimpleBean()", SimpleBeanFactory.getMethodUsed());
      assertEquals("()", bean.getConstructorUsed());
   }
View Full Code Here


      return (SimpleBean) instantiate(configurator, bmd);
   }
  
   public void testSimpleInstantiateFromFactoryWithParameters() throws Throwable
   {
      SimpleBean bean = simpleInstantiateFromFactoryWithParameters();
      assertEquals("createSimpleBean(String)", SimpleBeanFactory.getMethodUsed());
      assertEquals("Factory Value", bean.getConstructorUsed());
   }
View Full Code Here

      return (SimpleBean) instantiate(configurator, bmd);
   }

   public void testSimpleInstantiateFromFactoryWithIntegerParameter() throws Throwable
   {
      SimpleBean bean = simpleInstantiateFromFactoryWithIntegerParameter();
      assertEquals("createSimpleBean(integer)", SimpleBeanFactory.getMethodUsed());
      assertEquals("4", bean.getConstructorUsed());
   }
View Full Code Here

      return (SimpleBean) instantiate(configurator, bmd);
   }

   public void testStaticInstantiateFromFactory() throws Throwable
   {
      SimpleBean bean = staticInstantiateFromFactory();
      assertEquals("staticCreateSimpleBean()", SimpleBeanFactory.getMethodUsed());
      assertEquals("()", bean.getConstructorUsed());
   }
View Full Code Here

      return (SimpleBean) instantiate(configurator, bmd);
   }

   public void testStaticInstantiateFromFactoryWithParameters() throws Throwable
   {
      SimpleBean bean = staticInstantiateFromFactoryWithParameters();
      assertEquals("staticCreateSimpleBean(String)", SimpleBeanFactory.getMethodUsed());
      assertEquals("Static Factory Value", bean.getConstructorUsed());
   }
View Full Code Here

      return (SimpleBean) instantiate(configurator, bmd);
   }

   public void testStaticInstantiateFromFactoryWithIntegerParameter() throws Throwable
   {
      SimpleBean bean = staticInstantiateFromFactoryWithIntegerParameter();
      assertEquals("staticCreateSimpleBean(integer)", SimpleBeanFactory.getMethodUsed());
      assertEquals("7", bean.getConstructorUsed());
   }
View Full Code Here

      super(name, xmltest);
   }

   public void testSimpleListFromObjects() throws Throwable
   {
      SimpleBean bean = simpleListFromObjects();
      assertNotNull(bean);
     
      List<?> result = bean.getList();
      assertNotNull("Should be a list", result);
     
      ArrayList<Object> expected = new ArrayList<Object>();
      expected.add(object1);
      expected.add(object2);
View Full Code Here

      return (SimpleBean) instantiateAndConfigure(bmd);
   }

   public void testSimpleListFromStrings() throws Throwable
   {
      SimpleBean bean = simpleListFromStrings();
      assertNotNull(bean);
     
      List<?> result = bean.getList();
      assertNotNull("Should be a list", result);
     
      ArrayList<Object> expected = new ArrayList<Object>();
      expected.add(string1);
      expected.add(string2);
View Full Code Here

      return (SimpleBean) instantiateAndConfigure(configurator, bmd);
   }

   public void testCustomListExplicit() throws Throwable
   {
      SimpleBean bean = customListExplicit();
      assertNotNull(bean);
     
      List<?> result = bean.getList();
      assertNotNull("Should be a list", result);
      assertTrue("Not a CustomList: " + result.getClass(), result instanceof CustomList);
     
      ArrayList<Object> expected = new ArrayList<Object>();
      expected.add(string1);
View Full Code Here

      return (SimpleBean) instantiateAndConfigure(configurator, bmd);
   }

   public void testCustomListFromSignature() throws Throwable
   {
      SimpleBean bean = customListFromSignature();
      assertNotNull(bean);
     
      List<?> result = bean.getCustomList();
      assertNotNull("Should be a list", result);
      assertTrue("Not a CustomList: " + result.getClass(), result instanceof CustomList);
     
      ArrayList<Object> expected = new ArrayList<Object>();
      expected.add(string1);
View Full Code Here

TOP

Related Classes of org.jboss.test.kernel.config.support.SimpleBean

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.