89909192939495969798
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(); }
919293949596979899100
394041424344454647
public class TestCollectionValue extends AbstractProfileTest { public void testNoProfile() throws Exception { XMLCollection xc = getConfiguredCollection(); Collection coll = xc.getCollection(); assertEquals(1, coll.size()); }
525354555657585960
assertEquals(Arrays.asList("manager"), l); } public void testFooProfile() throws Exception { XMLCollection xc = getConfiguredCollection("foo"); Collection coll = xc.getCollection(); assertEquals(3, coll.size()); }
656667686970717273
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()); }
787980818283848586
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()); }
3839404142434445
public class TestField extends AbstractProfileTest { public void testNoProfile() throws Exception { XMLCollection xc = getConfiguredCollection(); assertEquals(Arrays.asList("manager"), xc.getCollection()); }
5051525354555657
assertEquals(Arrays.asList("manager"), l); } public void testFooProfile() throws Exception { XMLCollection xc = getConfiguredCollection("foo"); assertEquals(Arrays.asList("foo_manager"), xc.getCollection()); }
6263646566676869
assertEquals(Arrays.asList("foo_manager"), l); } public void testBarProfile() throws Exception { XMLCollection xc = getConfiguredCollection("bar"); assertEquals(Arrays.asList("foo_bar_manager"), xc.getCollection()); }
7475767778798081
assertEquals(Arrays.asList("foo_bar_manager"), l); } public void testFooBarProfile() throws Exception { XMLCollection xc = getConfiguredCollection("foo", "bar"); assertEquals(Arrays.asList("foo_manager"), xc.getCollection()); }