Examples of XMLCollection


Examples of org.exoplatform.xml.object.XMLCollection

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

Examples of org.exoplatform.xml.object.XMLCollection

      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

Examples of org.exoplatform.xml.object.XMLCollection

      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

Examples of org.exoplatform.xml.object.XMLCollection

      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

Examples of org.exoplatform.xml.object.XMLCollection

public class TestField extends AbstractProfileTest
{

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

Examples of org.exoplatform.xml.object.XMLCollection

      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

Examples of org.exoplatform.xml.object.XMLCollection

      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

Examples of org.exoplatform.xml.object.XMLCollection

      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

Examples of org.ozoneDB.xml.core.XMLCollection

    private void createCollection() throws Exception {
        try {
            connect();
            // check if there is an object there already in that case delete it
            // we assume we are cleaning up after an usuccessful testrun
            XMLCollection test = (XMLCollection)db.objectForName(collectionName);
            if (test != null) {
                deleteCollection();
                connect();
            }
            // create a new Collection
View Full Code Here

Examples of org.ozoneDB.xml.core.XMLCollection

        }
    }
    public void deleteCollection() {
        try {
            connect();
            XMLCollection collection = (XMLCollection)db.objectForName(collectionName);
            Iterator it = collection.getResources().iterator();
            while (it.hasNext()) {
                XMLContainer.forName(db,(String)it.next()).delete();
            }
            db.deleteObject(collection);
            System.out.println("StoreDocument.deleteCollection() - deleted " + collectionName);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.