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();
        
         assertEquals("Instantiated", test.getAString());
      }
      finally
      {
         assertUndeploy(name, names);
      }
View Full Code Here


   {
      ObjectName name = SimpleMBean.OBJECT_NAME;
      assertInstall(name);
      try
      {
         Simple simple = getSimple();
         assertEquals(new ObjectName[0], simple.getObjectNames());
      }
      finally
      {
         assertUninstall(name);
      }
View Full Code Here

   {
      ObjectName name = SimpleMBean.OBJECT_NAME;
      assertInstall(name);
      try
      {
         Simple simple = getSimple();
         assertEquals(DEPENDSLIST1, simple.getObjectNames());
      }
      finally
      {
         assertUninstall(name);
      }
View Full Code Here

   {
      ObjectName name = SimpleMBean.OBJECT_NAME;
      assertInstall(name);
      try
      {
         Simple simple = getSimple();
         assertEquals(DEPENDSLIST2, simple.getObjectNames());
      }
      finally
      {
         assertUninstall(name);
      }
View Full Code Here

   {
      ObjectName name = SimpleMBean.OBJECT_NAME;
      assertInstall(name);
      try
      {
         Simple simple = getSimple();
         assertEquals(DEPENDSLIST1, simple.getObjectNames());
      }
      finally
      {
         assertUninstall(name);
      }
View Full Code Here

      ObjectName name = SimpleMBean.OBJECT_NAME;
     
      assertInstall(name);
      try
      {
         Simple test = getSimple();
        
         Element element = test.getElement();
         assertNotNull(element);
        
         String tagName = element.getTagName();
         assertNotNull(tagName);
        
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

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.