Package org.jboss.metadata.spi.retrieval.simple

Examples of org.jboss.metadata.spi.retrieval.simple.SimpleMetaDatasItem


      SimpleMetaDataItem<Object> item1 = new SimpleMetaDataItem<Object>(Object.class.getName(), object1);
      SimpleMetaDataItem<String> item2 = new SimpleMetaDataItem<String>(String.class.getName(), object2);

      MetaDataItem<?>[] items = { item1, item2 };
     
      SimpleMetaDatasItem item = new SimpleMetaDatasItem(items);
      MetaDataItem<?>[] result = item.getMetaDatas();
      assertUnorderedArrayEquals(items, result);

      Object[] expected = { object1, object2 };
      Object[] objects = item.getValue();
      assertUnorderedArrayEquals(expected, objects);

      assertTrue(item.isCachable());
      assertTrue(item.isValid());
   }
View Full Code Here

TOP

Related Classes of org.jboss.metadata.spi.retrieval.simple.SimpleMetaDatasItem

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.