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

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


      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


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

      assertEquals("()", simple.constructorUsed);
   }
  
   protected void oneArg() throws Exception
   {
      Simple simple = getSimple();
      assertEquals("(int)", simple.constructorUsed);
      assertEquals(5, simple.getAnint());
   }
View Full Code Here

      assertEquals(5, simple.getAnint());
   }
  
   protected void twoArg() throws Exception
   {
      Simple simple = getSimple();
      assertEquals("(int,float)", simple.constructorUsed);
      assertEquals(5, simple.getAnint());
      assertEquals(3.14f, simple.getAfloat());
   }
View Full Code Here

      resourceName2 = resourceName + "_2.xml";
   }
  
   public void testDeployCorrectOrder() throws Exception
   {
      Simple test1 = null;
      Simple test2 = null;
     
      boolean error = false;
     
      List<ObjectName> mbeans1 = deploy(resourceName1);
      try
View Full Code Here

      }
   }
  
   public void testDeployWrongOrder() throws Exception
   {
      Simple test1 = null;
      Simple test2 = null;
     
      boolean error = false;
     
      List<ObjectName> mbeans2 = deploy(resourceName2);
      try
View Full Code Here

      }
   }
  
   public void testRedeployOne() throws Exception
   {
      Simple test1 = null;
      Simple test2 = null;
     
      boolean error = false;
     
      List<ObjectName> mbeans1 = deploy(resourceName1);
      try
View Full Code Here

      }
   }
  
   public void testRedeployTwo() throws Exception
   {
      Simple test1 = null;
      Simple test2 = null;
     
      boolean error = false;
     
      List<ObjectName> mbeans1 = deploy(resourceName1);
      try
View Full Code Here

   {
      ControllerContext mbeanContext = getControllerContext("jboss.test:type=test");
      assertNotNull(mbeanContext);
      Object mbean = mbeanContext.getTarget();
      assertNotNull(mbean);
      Simple simple = assertInstanceOf(Simple.class, mbean);

      ControllerContext beanContext = getControllerContext("Test");
      assertNotNull(beanContext);
      Object bean = beanContext.getTarget();
      assertNotNull(bean);
View Full Code Here

      return TEST;
   }
  
   public void checkInject() throws Throwable
   {
      Simple simple = getSimple();

      ControllerContext beanContext = getControllerContext(getContextName());
      assertNotNull(beanContext);
      Object bean = beanContext.getTarget();
      assertNotNull(bean);
      assertTrue(bean instanceof SimpleBean);
     
      Object injected = simple.getSimpleBean();
     
      assertTrue("Bean was not injected: ", bean == injected);
   }
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.