Package org.jboss.test.xb.builder.object.mc.support.model

Examples of org.jboss.test.xb.builder.object.mc.support.model.CallbackMetaData


      assertNull(install.getParameters());
   }

   public void testCallbackUninstallWithMethod() throws Exception
   {
      CallbackMetaData install = getUninstallCallback();
      assertNull(install.getProperty());
      assertEquals(ControllerState.INSTALLED, install.getDependentState());
      assertEquals("someMethod", install.getMethodName());
      assertNull(install.getAnnotations());
      assertNull(install.getParameters());
   }
View Full Code Here


      assertNull(install.getParameters());
   }

   public void testCallbackUninstallWithState() throws Exception
   {
      CallbackMetaData install = getUninstallCallback();
      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 testCallbackUninstallWithAnnotation() throws Exception
   {
      CallbackMetaData install = getUninstallCallback();
      assertNull(install.getProperty());
      assertEquals(ControllerState.INSTALLED, install.getDependentState());
      assertEquals("Dummy", install.getMethodName());
      HashSet<String> expected = new HashSet<String>();
      expected.add("@" + Annotation1.class.getName());
      assertAnnotations(expected, install.getAnnotations());
      assertNull(install.getParameters());
   }
View Full Code Here

      assertNull(install.getParameters());
   }

   public void testCallbackUninstallWithAnnotations() throws Exception
   {
      CallbackMetaData install = getUninstallCallback();
      assertNull(install.getProperty());
      assertEquals(ControllerState.INSTALLED, install.getDependentState());
      assertEquals("Dummy", install.getMethodName());
      HashSet<String> expected = new HashSet<String>();
      expected.add("@" + Annotation1.class.getName());
      expected.add("@" + Annotation2.class.getName());
      expected.add("@" + Annotation3.class.getName());
      assertAnnotations(expected, install.getAnnotations());
      assertNull(install.getParameters());
   }
View Full Code Here

      assertNull(install.getParameters());
   }

   public void testCallbackUninstallWithSignature() throws Exception
   {
      CallbackMetaData install = getUninstallCallback();
      assertNull(install.getProperty());
      assertEquals(ControllerState.INSTALLED, install.getDependentState());
      assertEquals("Dummy", install.getMethodName());
      assertNull(install.getAnnotations());
      assertNotNull(install.getSignature());
      assertEquals("someSignature", install.getSignature());
   }
View Full Code Here

      assertEquals("someSignature", install.getSignature());
   }

   public void testCallbackUninstallWithCardinality() throws Exception
   {
      CallbackMetaData install = getUninstallCallback();
      assertNull(install.getProperty());
      assertEquals(ControllerState.INSTALLED, install.getDependentState());
      assertEquals("Dummy", install.getMethodName());
      assertNull(install.getAnnotations());
      assertNotNull(install.getCardinality());
      assertEquals(install.getCardinality(), Cardinality.fromString("2..10"));
   }
View Full Code Here

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

TOP

Related Classes of org.jboss.test.xb.builder.object.mc.support.model.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.