Package org.jboss.test.javabean.support

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


   BigInteger bigIntegerValue = new BigInteger("123456");

   public void testConfigure() throws Exception
   {
      // check bean
      SimpleBean bean = unmarshal("TestConfigure.xml", SimpleBean.class);
      validateFields("()", null, bean);
   }
View Full Code Here


   }

   public void testConfigure20() throws Exception
   {
      // check bean
      SimpleBean bean = unmarshal("TestConfigure20.xml", SimpleBean.class);
      validateFields("()", null, bean);
   }
View Full Code Here

   }

   public void testConfigure20WithCtor() throws Exception
   {
      // check bean
      SimpleBean bean = unmarshal("TestConfigure20WithCtor.xml", SimpleBean.class);
      validateFields("(<all-fields>)", null, bean);
   }
View Full Code Here

   }

   public void testConfigure20WithCtorFactory() throws Exception
   {
      // check bean
      SimpleBean bean = unmarshal("TestConfigure20WithCtorFactory.xml", SimpleBean.class);
      validateFields("(<all-fields>)", "getInstance(<all-fields>)", bean);
   }
View Full Code Here

   }

   public void testConfigure20WithCtorExplicitFactoryClass() throws Exception
   {
      // check bean
      SimpleBean bean = unmarshal("TestConfigure20WithCtorExplicitFactoryClass.xml", SimpleBean.class);
      validateFields("()", "SimpleBeanFactory.newInstance()", bean);
   }
View Full Code Here

      validateFields("()", "SimpleBeanFactory.newInstance()", bean);
   }
   public void testConfigure20WithCtorExplicitFactoryClassAndParams() throws Exception
   {
      // check bean
      SimpleBean bean = unmarshal("TestConfigure20WithCtorExplicitFactoryClassAndParams.xml", SimpleBean.class);
      validateFields("(<all-fields>)", "SimpleBeanFactory.newInstance(<all-fields>)", bean);
   }
View Full Code Here

   }

   public void testConstructor() throws Exception
   {
      // check bean
      SimpleBean bean = unmarshal("TestConstructor.xml", SimpleBean.class);
      validateFields("(<all-fields>)", null, bean);
   }
View Full Code Here

   }

   public void testConstructorFactory() throws Exception
   {
      // check bean
      SimpleBean bean = unmarshal("TestConstructorFactory.xml", SimpleBean.class);
      validateFields("(<all-fields>)", "getInstance(<all-fields>)", bean);
   }
View Full Code Here

   }

   public void testConstructorExplicitFactoryClassAndParams() throws Exception
   {
      // check bean
      SimpleBean bean = unmarshal("TestConstructorExplicitFactoryClassAndParams.xml", SimpleBean.class);
      validateFields("(<all-fields>)", "SimpleBeanFactory.newInstance(<all-fields>)", bean);
   }
View Full Code Here

*/
public class InstantiateTestCase extends AbstractJavaBeanTest
{
   public void testInstantiate() throws Exception
   {
      SimpleBean bean = unmarshal("TestInstantiate.xml", SimpleBean.class);
      assertEquals("()", bean.getConstructorUsed());
   }
View Full Code Here

TOP

Related Classes of org.jboss.test.javabean.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.