Package org.jboss.test.system.controller.support

Examples of org.jboss.test.system.controller.support.Simple


      ObjectName name = SimpleMBean.OBJECT_NAME;
     
      List<ObjectName> names = assertDeploy(name);
      try
      {
         Simple test = getSimple();
         Simple other = getMBean(Simple.class, OTHER, "Instance");
        
         assertEquals(other, test.getSimple());
      }
      finally
      {
View Full Code Here


      ObjectName name = SimpleMBean.OBJECT_NAME;
     
      List<ObjectName> names = assertDeploy(name);
      try
      {
         Simple test = getSimple();
        
         assertEquals("PropertyInjection", test.getAString());
      }
      finally
      {
         assertUndeploy(name, names);
      }
View Full Code Here

      ObjectName name = SimpleMBean.OBJECT_NAME;
     
      List<ObjectName> names = assertDeploy(name);
      try
      {
         Simple test = getSimple();
        
         assertEquals("Instantiated", test.getAString());
      }
      finally
      {
         assertUndeploy(name, names);
      }
View Full Code Here

      ObjectName name = SimpleMBean.OBJECT_NAME;
     
      assertInstall(name);
      try
      {
         Simple test = getSimple();

         assertEquals(stringValue, test.getAString());
         assertEquals(byteValue, test.getAByte());
         assertEquals(booleanValue, test.getABoolean());
         // TODO character
         // assertEquals(characterValue, test.getACharacter());
         assertEquals(shortValue, test.getAShort());
         assertEquals(integerValue, test.getAnInt());
         assertEquals(longValue, test.getALong());
         assertEquals(floatValue, test.getAFloat());
         assertEquals(doubleValue, test.getADouble());
         assertEquals(dateValue, test.getADate());
         assertEquals(bigDecimalValue, test.getABigDecimal());
         // TODO BigInteger
         //assertEquals(bigIntegerValue, test.getABigInteger());
         assertEquals(byteValue.byteValue(), test.getAbyte());
         assertEquals(booleanValue.booleanValue(), test.isAboolean());
         // TODO character
         // assertEquals(characterValue.charValue(), test.getAchar());
         assertEquals(shortValue.shortValue(), test.getAshort());
         assertEquals(integerValue.intValue(), test.getAnint());
         assertEquals(longValue.longValue(), test.getAlong());
         assertEquals(floatValue.floatValue(), test.getAfloat());
         assertEquals(doubleValue.doubleValue(), test.getAdouble());
      }
      finally
      {
         assertUninstall(name);
      }
View Full Code Here

   }
  
   public void testNoMetaData() throws Throwable
   {
      ObjectName name = SimpleMBean.OBJECT_NAME;
      Simple test = new Simple();

      ServiceController serviceController = (ServiceController) getController();
      serviceController.install(name, test);
      try
      {
View Full Code Here

  
   public void testNoMetaDataNoName() throws Throwable
   {
      ObjectName name = SimpleMBean.OBJECT_NAME;

      Simple test = new Simple();
     
      ServiceController serviceController = (ServiceController) getController();
      try
      {
         serviceController.install(null, test);
View Full Code Here

      ObjectName name = SimpleMBean.OBJECT_NAME;
     
      assertInstall(name);
      try
      {
         Simple test = getSimple();

         JavaBean bean = test.getJavaBean();
         assertNotNull(bean);
         assertEquals("", bean.getProperty1());
      }
      finally
      {
View Full Code Here

      ObjectName name = SimpleMBean.OBJECT_NAME;
     
      assertInstall(name);
      try
      {
         Simple test = getSimple();

         JavaBean bean = test.getJavaBean();
         assertNotNull(bean);
         assertEquals("property1", bean.getProperty1());
         assertEquals(new Integer(10), bean.getProperty2());
      }
      finally
View Full Code Here

   public void testBasics() throws Exception
   {
      assertServiceRunning(SimpleMBean.OBJECT_NAME);
     
      MBeanServer server = getServer();
      Simple test = (Simple) server.getAttribute(SimpleMBean.OBJECT_NAME, "Instance");
      assertEquals("()", test.constructorUsed);
      assertEquals(1, test.createOrder);
      assertEquals(2, test.startOrder);
      assertEquals(0, test.stopOrder);
      assertEquals(0, test.destroyOrder);
View Full Code Here

      twoArg();
   }
  
   protected void noArg() throws Exception
   {
      Simple simple = getSimple();
      assertEquals("()", simple.constructorUsed);
   }
View Full Code Here

TOP

Related Classes of org.jboss.test.system.controller.support.Simple

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.