Search in sources :

Example 1 with XMLCollection

use of org.exoplatform.xml.object.XMLCollection in project kernel by exoplatform.

the class TestCollectionValue method testBarProfile.

public void testBarProfile() throws Exception {
    XMLCollection xc = getConfiguredCollection("bar");
    Collection coll = xc.getCollection();
    assertEquals(2, coll.size());
}
Also used : XMLCollection(org.exoplatform.xml.object.XMLCollection) Collection(java.util.Collection) XMLCollection(org.exoplatform.xml.object.XMLCollection)

Example 2 with XMLCollection

use of org.exoplatform.xml.object.XMLCollection in project kernel by exoplatform.

the class TestCollectionValue method testNoProfile.

public void testNoProfile() throws Exception {
    XMLCollection xc = getConfiguredCollection();
    Collection coll = xc.getCollection();
    assertEquals(1, coll.size());
}
Also used : XMLCollection(org.exoplatform.xml.object.XMLCollection) Collection(java.util.Collection) XMLCollection(org.exoplatform.xml.object.XMLCollection)

Example 3 with XMLCollection

use of org.exoplatform.xml.object.XMLCollection in project kernel by exoplatform.

the class TestCollectionValue method testFooProfile.

public void testFooProfile() throws Exception {
    XMLCollection xc = getConfiguredCollection("foo");
    Collection coll = xc.getCollection();
    assertEquals(3, coll.size());
}
Also used : XMLCollection(org.exoplatform.xml.object.XMLCollection) Collection(java.util.Collection) XMLCollection(org.exoplatform.xml.object.XMLCollection)

Example 4 with XMLCollection

use of org.exoplatform.xml.object.XMLCollection in project kernel by exoplatform.

the class TestField method testFooBarProfile.

public void testFooBarProfile() throws Exception {
    XMLCollection xc = getConfiguredCollection("foo", "bar");
    assertEquals(Arrays.asList("foo_manager"), xc.getCollection());
}
Also used : XMLCollection(org.exoplatform.xml.object.XMLCollection)

Example 5 with XMLCollection

use of org.exoplatform.xml.object.XMLCollection in project kernel by exoplatform.

the class TestCollectionValue method testFooBarProfile.

public void testFooBarProfile() throws Exception {
    XMLCollection xc = getConfiguredCollection("foo", "bar");
    Collection coll = xc.getCollection();
    assertEquals(3, coll.size());
}
Also used : XMLCollection(org.exoplatform.xml.object.XMLCollection) Collection(java.util.Collection) XMLCollection(org.exoplatform.xml.object.XMLCollection)

Aggregations

XMLCollection (org.exoplatform.xml.object.XMLCollection)9 Collection (java.util.Collection)4 ByteArrayInputStream (java.io.ByteArrayInputStream)1 File (java.io.File)1 FileInputStream (java.io.FileInputStream)1 FileOutputStream (java.io.FileOutputStream)1 ByteBuffer (java.nio.ByteBuffer)1 FileChannel (java.nio.channels.FileChannel)1 ArrayList (java.util.ArrayList)1 Date (java.util.Date)1 List (java.util.List)1 XMLObject (org.exoplatform.xml.object.XMLObject)1