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

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


*/
public class InjectionTestCase extends AbstractMCTest
{
   protected AbstractDependencyValueMetaData getInjection() throws Exception
   {
      AbstractBeanMetaData bean = unmarshalBean();
      Set<?> properties = bean.getProperties();
      assertNotNull(properties);
      assertEquals(1, properties.size());
      PropertyMetaData property = (PropertyMetaData) properties.iterator().next();
      assertNotNull(property);
      ValueMetaData value = property.getValue();
View Full Code Here


*/
public class LifecycleTestCase extends AbstractMCTest
{
   protected LifecycleMetaData getLifecycle() throws Exception
   {
      AbstractBeanMetaData bean = unmarshalBean();
      LifecycleMetaData lifecycle = bean.getCreate();
      assertNotNull(lifecycle);
      return lifecycle;
   }
View Full Code Here

*/
public class PropertyTestCase extends AbstractMCTest
{
   protected PropertyMetaData getProperty() throws Exception
   {
      AbstractBeanMetaData bean = unmarshalBean();
      Set<?> properties = bean.getProperties();
      assertNotNull(properties);
      assertEquals(1, properties.size());
      PropertyMetaData property = (PropertyMetaData) properties.iterator().next();
      assertNotNull(property);
      return property;
View Full Code Here

*/
public class ArrayTestCase extends AbstractMCTest
{
   protected AbstractArrayMetaData getCollection() throws Exception
   {
      AbstractBeanMetaData bean = unmarshalBean();
      Set<?> properties = bean.getProperties();
      assertNotNull(properties);
      assertEquals(1, properties.size());
      PropertyMetaData property = (PropertyMetaData) properties.iterator().next();
      assertNotNull(property);
      ValueMetaData value = property.getValue();
View Full Code Here

      return suite(CallbackTestCase.class);
   }

   protected CallbackMetaData getInstallCallback() throws Exception
   {
      AbstractBeanMetaData bean = unmarshalBean();
      List<CallbackMetaData> callbacks = bean.getInstallCallbacks();
      assertNotNull(callbacks);
      assertEquals(1, callbacks.size());
      CallbackMetaData callback = callbacks.get(0);
      assertNotNull(callback);
      return callback;
View Full Code Here

      return callback;
   }

   protected CallbackMetaData getUninstallCallback() throws Exception
   {
      AbstractBeanMetaData bean = unmarshalBean();
      List<CallbackMetaData> callbacks = bean.getUninstallCallbacks();
      assertNotNull(callbacks);
      assertEquals(1, callbacks.size());
      CallbackMetaData callback = callbacks.get(0);
      assertNotNull(callback);
      return callback;
View Full Code Here

*/
public class DemandTestCase extends AbstractMCTest
{
   protected AbstractDemandMetaData getDemand() throws Exception
   {
      AbstractBeanMetaData bean = unmarshalBean();
      Set<?> demands = bean.getDemands();
      assertNotNull(demands);
      assertEquals(1, demands.size());
      AbstractDemandMetaData demand = (AbstractDemandMetaData) demands.iterator().next();
      assertNotNull(demand);
      return demand;
View Full Code Here

*/
public class InstallTestCase extends AbstractMCTest
{
   protected InstallMetaData getInstall() throws Exception
   {
      AbstractBeanMetaData bean = unmarshalBean();
      List<?> installs = bean.getInstalls();
      assertNotNull(installs);
      assertEquals(1, installs.size());
      InstallMetaData install = (InstallMetaData) installs.get(0);
      assertNotNull(install);
      return install;
View Full Code Here

*/
public class CollectionTestCase extends AbstractMCTest
{
   protected AbstractCollectionMetaData getCollection() throws Exception
   {
      AbstractBeanMetaData bean = unmarshalBean();
      Set<?> properties = bean.getProperties();
      assertNotNull(properties);
      assertEquals(1, properties.size());
      PropertyMetaData property = (PropertyMetaData) properties.iterator().next();
      assertNotNull(property);
      ValueMetaData value = property.getValue();
View Full Code Here

*/
public class FactoryTestCase extends AbstractMCTest
{
   protected AbstractValueMetaData getFactory() throws Exception
   {
      AbstractBeanMetaData bean = unmarshalBean();
      ConstructorMetaData constructor = bean.getConstructor();
      assertNotNull(constructor);
      ValueMetaData factory = constructor.getFactory();
      assertNotNull(factory);
      assertTrue(factory instanceof AbstractValueMetaData);
      return (AbstractValueMetaData) factory;
View Full Code Here

TOP

Related Classes of org.jboss.test.xb.builder.object.mc.support.model.AbstractBeanMetaData

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.