Package org.jboss.beans.metadata.plugins

Examples of org.jboss.beans.metadata.plugins.AbstractArrayMetaData


      assertSet(getValue(collection));
   }
  
   public void testArrayWithArray() throws Exception
   {
      AbstractArrayMetaData collection = getCollection("ArrayWithArray.xml");
      assertNull(collection.getType());
      assertNull(collection.getElementType());
      assertArray(getValue(collection));
   }
View Full Code Here


      assertArray(getValue(collection));
   }
  
   public void testArrayWithMap() throws Exception
   {
      AbstractArrayMetaData collection = getCollection("ArrayWithMap.xml");
      assertNull(collection.getType());
      assertNull(collection.getElementType());
      assertMap(getValue(collection));
   }
View Full Code Here

      assertMap(getValue(collection));
   }
  
   public void testArrayWithNull() throws Exception
   {
      AbstractArrayMetaData collection = getCollection("ArrayWithNull.xml");
      assertNull(collection.getType());
      assertNull(collection.getElementType());
      assertNullValue(getValue(collection));
   }
View Full Code Here

      assertNullValue(getValue(collection));
   }
  
   public void testArrayWithThis() throws Exception
   {
      AbstractArrayMetaData collection = getCollection("ArrayWithThis.xml");
      assertNull(collection.getType());
      assertNull(collection.getElementType());
      assertThis(getValue(collection));
   }
View Full Code Here

      assertThis(getValue(collection));
   }
  
   public void testArrayWithWildcard() throws Exception
   {
      AbstractArrayMetaData collection = getCollection("ArrayWithWildcard.xml");
      assertNull(collection.getType());
      assertNull(collection.getElementType());
      assertWildcard(getValue(collection));
   }
View Full Code Here

      assertWildcard(getValue(collection));
   }
  
   public void testArrayWithBean() throws Exception
   {
      AbstractArrayMetaData collection = getCollection("ArrayWithBean.xml");
      assertNull(collection.getType());
      assertNull(collection.getElementType());
      assertBean(getValue(collection));
   }
View Full Code Here

      StringValueMetaData vmd1 = new StringValueMetaData(string1);
      StringValueMetaData vmd2 = new StringValueMetaData(string2);
      StringValueMetaData vmd3 = new StringValueMetaData(string1);

      AbstractArrayMetaData smd = new AbstractArrayMetaData();
      smd.setType(new String[0].getClass().getName());
      smd.setElementType("java.lang.String");
      smd.setConfigurator(configurator);
      smd.add(vmd1);
      smd.add(vmd2);
      smd.add(vmd2); // tests duplicates
      smd.add(vmd3); // tests duplicates

      AbstractPropertyMetaData pmd = new AbstractPropertyMetaData("array", smd);
      properties.add(pmd);
     
      return (SimpleBean) instantiateAndConfigure(configurator, bmd);
View Full Code Here

      StringValueMetaData vmd1 = new StringValueMetaData(string1);
      StringValueMetaData vmd2 = new StringValueMetaData(string2);
      StringValueMetaData vmd3 = new StringValueMetaData(string1);

      AbstractArrayMetaData smd = new AbstractArrayMetaData();
      smd.setElementType("java.lang.String");
      smd.setConfigurator(configurator);
      smd.add(vmd1);
      smd.add(vmd2);
      smd.add(vmd2); // tests duplicates
      smd.add(vmd3); // tests duplicates

      AbstractPropertyMetaData pmd = new AbstractPropertyMetaData("customArray", smd);
      properties.add(pmd);
     
      return (SimpleBean) instantiateAndConfigure(configurator, bmd);
View Full Code Here

      StringValueMetaData vmd3 = new StringValueMetaData(string1);
      StringValueMetaData vmd4 = new StringValueMetaData("1");
      vmd4.setConfigurator(configurator);
      vmd4.setType("java.lang.Integer");

      AbstractArrayMetaData smd = new AbstractArrayMetaData();
      smd.setElementType("java.lang.String");
      smd.setConfigurator(configurator);
      smd.add(vmd1);
      smd.add(vmd2);
      smd.add(vmd2); // tests duplicates
      smd.add(vmd3); // tests duplicates
      smd.add(vmd4);

      AbstractPropertyMetaData pmd = new AbstractPropertyMetaData("array", smd);
      properties.add(pmd);
     
      return (SimpleBean) instantiateAndConfigure(configurator, bmd);
View Full Code Here

      StringValueMetaData vmd1 = new StringValueMetaData(string1);
      StringValueMetaData vmd2 = new StringValueMetaData(string2);
      StringValueMetaData vmd3 = new StringValueMetaData(string1);

      AbstractArrayMetaData smd = new AbstractArrayMetaData();
      smd.setElementType("java.lang.String");
      smd.setConfigurator(configurator);
      smd.add(vmd1);
      smd.add(vmd2);
      smd.add(vmd2); // tests duplicates
      smd.add(vmd3); // tests duplicates

      AbstractPropertyMetaData pmd = new AbstractPropertyMetaData("AString", smd);
      properties.add(pmd);
     
      return (SimpleBean) instantiateAndConfigure(configurator, bmd);
View Full Code Here

TOP

Related Classes of org.jboss.beans.metadata.plugins.AbstractArrayMetaData

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.