Package org.exoplatform.xml.object

Examples of org.exoplatform.xml.object.XMLCollection


      is.close();

      List list = new ArrayList();
      list.add("test.....................");
      list.add(new Date());
      XMLCollection xmllist = new XMLCollection(list);
      os = new FileOutputStream(projectdir + "/target/list.xml");
      os.write(xmllist.toByteArray("UTF-8"));
      os.close();
   }
View Full Code Here


      is.close();

      List list = new ArrayList();
      list.add("test.....................");
      list.add(new Date());
      XMLCollection xmllist = new XMLCollection(list);
      os = new FileOutputStream(projectdir + "/target/list.xml");
      os.write(xmllist.toByteArray("UTF-8"));
      os.close();
   }
View Full Code Here

public class TestCollectionValue extends AbstractProfileTest
{

   public void testNoProfile() throws Exception
   {
      XMLCollection xc = getConfiguredCollection();
      Collection coll = xc.getCollection();
      assertEquals(1, coll.size());
   }
View Full Code Here

      assertEquals(Arrays.asList("manager"), l);
   }

   public void testFooProfile() throws Exception
   {
      XMLCollection xc = getConfiguredCollection("foo");
      Collection coll = xc.getCollection();
      assertEquals(3, coll.size());
   }
View Full Code Here

      assertEquals(Arrays.asList("manager", "foo_manager", "foo_bar_manager"), l);
   }

   public void testBarProfile() throws Exception
   {
      XMLCollection xc = getConfiguredCollection("bar");
      Collection coll = xc.getCollection();
      assertEquals(2, coll.size());
   }
View Full Code Here

      assertEquals(Arrays.asList("manager", "foo_bar_manager"), l);
   }

   public void testFooBarProfile() throws Exception
   {
      XMLCollection xc = getConfiguredCollection("foo", "bar");
      Collection coll = xc.getCollection();
      assertEquals(3, coll.size());
   }
View Full Code Here

public class TestField extends AbstractProfileTest
{

   public void testNoProfile() throws Exception
   {
      XMLCollection xc = getConfiguredCollection();
      assertEquals(Arrays.asList("manager"), xc.getCollection());
   }
View Full Code Here

      assertEquals(Arrays.asList("manager"), l);
   }

   public void testFooProfile() throws Exception
   {
      XMLCollection xc = getConfiguredCollection("foo");
      assertEquals(Arrays.asList("foo_manager"), xc.getCollection());
   }
View Full Code Here

      assertEquals(Arrays.asList("foo_manager"), l);
   }

   public void testBarProfile() throws Exception
   {
      XMLCollection xc = getConfiguredCollection("bar");
      assertEquals(Arrays.asList("foo_bar_manager"), xc.getCollection());
   }
View Full Code Here

      assertEquals(Arrays.asList("foo_bar_manager"), l);
   }

   public void testFooBarProfile() throws Exception
   {
      XMLCollection xc = getConfiguredCollection("foo", "bar");
      assertEquals(Arrays.asList("foo_manager"), xc.getCollection());
   }
View Full Code Here

TOP

Related Classes of org.exoplatform.xml.object.XMLCollection

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.