19
|
1 package jp.ac.u_ryukyu.cr.ie.tatsuki.functionTest;
|
|
2
|
|
3 import java.util.Iterator;
|
|
4 import java.util.LinkedList;
|
|
5
|
|
6 import jp.ac.u_ryukyu.cr.ie.tatsuki.bbs.JuGrix;
|
|
7
|
|
8 import org.junit.Assert;
|
|
9 import org.junit.Test;
|
|
10
|
|
11 public class deepChildOrganizationIdsPlusTest {
|
|
12
|
|
13 @Test
|
|
14 public void deepChildOrganizationIdsPlusTest(){
|
|
15 JuGrix jugrix = new JuGrix();
|
|
16 LinkedList<String> filterIds = new LinkedList<String>();
|
|
17 filterIds.add("r:9");
|
|
18 Iterator<String> childrenIds = jugrix.deepChildOrganizationIdsPlus("o:2", filterIds);
|
|
19 Assert.assertTrue(childrenIds.hasNext());
|
|
20 Assert.assertEquals(childrenIds.next(),"o:2");
|
|
21
|
|
22 filterIds = new LinkedList<String>();
|
|
23 filterIds.add("r:5");
|
|
24 childrenIds = jugrix.deepChildOrganizationIdsPlus("o:2", filterIds);
|
|
25 Assert.assertTrue(childrenIds.hasNext());
|
|
26 Assert.assertEquals(childrenIds.next(),"o:4");
|
|
27 }
|
|
28 }
|