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

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


      return delegate;
   }

   public void testCustomCollectionPreInstantiated2() throws Throwable
   {
      SimplerBean bean = customCollectionPreInstantiated();
      assertNotNull(bean);

      Collection<?> result = bean.getPreInstantiatedCollection();
      assertNotNull("Should be a collection", result);
      assertTrue("Not a CustomCollection: " + result.getClass(), result instanceof CustomCollection);
      assertTrue("Not preinstantiated", ((CustomCollection) result).getPreInstantiated());

      ArrayList<Object> expected = new ArrayList<Object>();
View Full Code Here


      return (SimplerBean) instantiate(controller, bmd);
   }

   public void testCustomListPreInstantiated2() throws Throwable
   {
      SimplerBean bean = customListPreInstantiated();
      assertNotNull(bean);

      List<?> result = bean.getPreInstantiatedList();
      assertNotNull("Should be a list", result);
      assertTrue("Not a CustomList: " + result.getClass(), result instanceof CustomList);
      assertTrue("Not preinstantiated", ((CustomList) result).getPreInstantiated());

      ArrayList<Object> expected = new ArrayList<Object>();
View Full Code Here

      return (SimplerBean) instantiate(controller, bmd);
   }

   public void testCustomMapPreInstantiated2() throws Throwable
   {
      SimplerBean bean = customMapPreInstantiated();
      assertNotNull(bean);

      Map<?,?> result = bean.getPreInstantiatedMap();
      assertNotNull("Should be a map", result);
      assertTrue("Not a CustomMap: " + result.getClass(), result instanceof CustomMap);
      assertTrue("Not preinstantiated", ((CustomMap) result).getPreInstantiated());

      Map<Object, Object> expected = new HashMap<Object, Object>();
View Full Code Here

      return (SimplerBean) instantiate(controller, bmd);
   }

   public void testCustomSetPreInstantiated2() throws Throwable
   {
      SimplerBean bean = customSetPreInstantiated();
      assertNotNull(bean);

      Set<?> result = bean.getPreInstantiatedSet();
      assertNotNull("Should be a set", result);
      assertTrue("Not a CustomSet: " + result.getClass(), result instanceof CustomSet);
      assertTrue("Not preinstantiated", ((CustomSet) result).getPreInstantiated());

      HashSet<Object> expected = new HashSet<Object>();
View Full Code Here

TOP

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

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.