Examples of SimpleBean


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

   }

   public void testStringAttribute() throws Throwable
   {
      Object value = new String("StringValue");
      SimpleBean bean = configureSimpleBean("aString", value);
      assertEquals(value, bean.getAString());
   }
View Full Code Here

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

   }

   public void testByteAttribute() throws Throwable
   {
      Object value = new Byte("12");
      SimpleBean bean = configureSimpleBean("aByte", value);
      assertEquals(value, bean.getAByte());
   }
View Full Code Here

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

   }

   public void testBooleanAttribute() throws Throwable
   {
      Object value = Boolean.TRUE;
      SimpleBean bean = configureSimpleBean("aBoolean", value);
      assertEquals(value, bean.getABoolean());
   }
View Full Code Here

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

   } */

   public void testShortAttribute() throws Throwable
   {
      Object value = new Short("123");
      SimpleBean bean = configureSimpleBean("aShort", value);
      assertEquals(value, bean.getAShort());
   }
View Full Code Here

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

   }

   public void testIntegerAttribute() throws Throwable
   {
      Object value = new Integer("1234");
      SimpleBean bean = configureSimpleBean("anInt", value);
      assertEquals(value, bean.getAnInt());
   }
View Full Code Here

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

   }

   public void testLongAttribute() throws Throwable
   {
      Object value = new Long("12345");
      SimpleBean bean = configureSimpleBean("aLong", value);
      assertEquals(value, bean.getALong());
   }
View Full Code Here

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

   }

   public void testFloatAttribute() throws Throwable
   {
      Object value = new Float("3.14");
      SimpleBean bean = configureSimpleBean("aFloat", value);
      assertEquals(value, bean.getAFloat());
   }
View Full Code Here

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

   }

   public void testDoubleAttribute() throws Throwable
   {
      Object value = new Double("3.14e12");
      SimpleBean bean = configureSimpleBean("aDouble", value);
      assertEquals(value, bean.getADouble());
   }
View Full Code Here

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

   }

   public void testDateAttribute() throws Throwable
   {
      Object value = createDate(2001, 01, 01);
      SimpleBean bean = configureSimpleBean("aDate", value);
      assertEquals(value, bean.getADate());
   }
View Full Code Here

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

   }

   public void testBigDecimalAttribute() throws Throwable
   {
      Object value = new BigDecimal("12e4");
      SimpleBean bean = configureSimpleBean("aBigDecimal", value);
      assertEquals(value, bean.getABigDecimal());
   }
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.