Package org.jboss.beans.metadata.spi

Examples of org.jboss.beans.metadata.spi.CallbackMetaData


      assertNull(install.getParameters());
   }

   public void testUninstallWithState() throws Exception
   {
      CallbackMetaData install = getUninstallCallback("CallbackUninstallWithState.xml");
      assertNull(install.getProperty());
      assertEquals(ControllerState.CONFIGURED, install.getDependentState());
      assertEquals("Dummy", install.getMethodName());
      assertNull(install.getAnnotations());
      assertNull(install.getParameters());
   }
View Full Code Here


      assertNull(install.getParameters());
   }

   public void testUninstallWithAnnotation() throws Exception
   {
      CallbackMetaData install = getUninstallCallback("CallbackUninstallWithAnnotation.xml");
      assertNull(install.getProperty());
      assertEquals(ControllerState.INSTALLED, install.getDependentState());
      assertEquals("Dummy", install.getMethodName());
      HashSet<String> expected = new HashSet<String>();
      expected.add("org.jboss.test.kernel.deployment.xml.support.Annotation1");
      assertAnnotations(expected, install.getAnnotations());
      assertNull(install.getParameters());
   }
View Full Code Here

      assertNull(install.getParameters());
   }

   public void testUninstallWithAnnotations() throws Exception
   {
      CallbackMetaData install = getUninstallCallback("CallbackUninstallWithAnnotations.xml");
      assertNull(install.getProperty());
      assertEquals(ControllerState.INSTALLED, install.getDependentState());
      assertEquals("Dummy", install.getMethodName());
      HashSet<String> expected = new HashSet<String>();
      expected.add("org.jboss.test.kernel.deployment.xml.support.Annotation1");
      expected.add("org.jboss.test.kernel.deployment.xml.support.Annotation2");
      expected.add("org.jboss.test.kernel.deployment.xml.support.Annotation3");
      assertAnnotations(expected, install.getAnnotations());
      assertNull(install.getParameters());
   }
View Full Code Here

   {
      assertNotNull(callbacks);
      assertEquals(expected.size(), callbacks.size());
      for (int i = 0; i < expected.size(); ++i)
      {
         CallbackMetaData callback = callbacks.get(i);
         String method = expected.get(i);
         assertEquals(method, callback.getMethodName());
      }
   }
View Full Code Here

   {
      assertNotNull(callbacks);
      assertEquals(expected.size(), callbacks.size());
      for (int i = 0; i < expected.size(); ++i)
      {
         CallbackMetaData callback = callbacks.get(i);
         String method = expected.get(i);
         assertEquals(method, callback.getMethodName());
      }
   }
View Full Code Here

      testInstalls(bmd.getUninstalls());

      List<CallbackMetaData> callbacks = bmd.getInstallCallbacks();
      assertNotNull(callbacks);
      assertEquals(1, callbacks.size());
      CallbackMetaData callback = callbacks.get(0);
      assertTrue(callback.getMethodName().contains("Something"));
      callbacks = bmd.getUninstallCallbacks();
      assertNotNull(callbacks);
      assertEquals(1, callbacks.size());
      callback = callbacks.get(0);
      assertTrue(callback.getMethodName().contains("Something"));

      BeanAccessMode mode = bmd.getAccessMode();
      if (mode == BeanAccessMode.ALL)
      {
         Set<PropertyMetaData> propertys = bmd.getProperties();
View Full Code Here

TOP

Related Classes of org.jboss.beans.metadata.spi.CallbackMetaData

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.