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

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


      return (SimpleBean) instantiate(configurator, bmd);
   }
  
   public void testParameterInstantiateWithProperties() throws Throwable
   {
      SimpleBean bean = parameterInstantiateWithProperties();
      assertEquals("java.util.Hashtable:java.util.Properties:{1=2}", bean.getConstructorUsed());
      Properties expected = new Properties();
      expected.put("1", "2");
      assertEquals(expected, bean.getMap());
   }
View Full Code Here


   }

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

   }

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

   }

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

   }

   public void testCharacterAttribute() throws Throwable
   {
      Object value = new Character('a');
      SimpleBean bean = configureSimpleBean("aCharacter", value);
      assertEquals(value, bean.getACharacter());
   }
View Full Code Here

   }

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

   }

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

   }

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

   }

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

   }

   public void testDoubleAttribute() throws Throwable
   {
      Object value = new Double("3.14e12");
      SimpleBean bean = configureSimpleBean("aDouble", value);
      assertEquals(value, bean.getADouble());
   }
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.