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

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


   }

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


   }

   public void testBigDecimalAttribute() throws Throwable
   {
      Object value = new BigDecimal("12e4");
      SimpleBean bean = configureSimpleBean("aBigDecimal", value);
      assertEquals(value, bean.getABigDecimal());
   }
View Full Code Here

   }

   public void testBigIntegerAttribute() throws Throwable
   {
      Object value = new BigInteger("123456");
      SimpleBean bean = configureSimpleBean("aBigInteger", value);
      assertEquals(value, bean.getABigInteger());
   }
View Full Code Here

   }

   public void testPrimitiveByteAttribute() throws Throwable
   {
      Byte value = new Byte("12");
      SimpleBean bean = configureSimpleBean("abyte", value);
      assertEquals(value.byteValue(), bean.getAbyte());
   }
View Full Code Here

   }

   public void testPrimitiveBooleanAttribute() throws Throwable
   {
      Boolean value = Boolean.TRUE;
      SimpleBean bean = configureSimpleBean("aboolean", value);
      assertEquals(value.booleanValue(), bean.isAboolean());
   }
View Full Code Here

   }

   public void testPrimitiveCharacterAttribute() throws Throwable
   {
      Character value = new Character('a');
      SimpleBean bean = configureSimpleBean("achar", value);
      assertEquals(value.charValue(), bean.getAchar());
   }
View Full Code Here

   }

   public void testPrimitiveShortAttribute() throws Throwable
   {
      Short value = new Short("123");
      SimpleBean bean = configureSimpleBean("ashort", value);
      assertEquals(value.shortValue(), bean.getAshort());
   }
View Full Code Here

   }

   public void testPrimitiveIntegerAttribute() throws Throwable
   {
      Integer value = new Integer("1234");
      SimpleBean bean = configureSimpleBean("anint", value);
      assertEquals(value.intValue(), bean.getAnint());
   }
View Full Code Here

   }

   public void testPrimitiveLongAttribute() throws Throwable
   {
      Long value = new Long("12345");
      SimpleBean bean = configureSimpleBean("along", value);
      assertEquals(value.longValue(), bean.getAlong());
   }
View Full Code Here

   }

   public void testPrimitiveFloatAttribute() throws Throwable
   {
      Float value = new Float("3.14");
      SimpleBean bean = configureSimpleBean("afloat", value);
      assertEquals(value.floatValue(), bean.getAfloat());
   }
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.