16
|
1 package jp.ac.u_ryukyu.cr.ie.tatsuki.functionTest;
|
|
2
|
|
3 import java.util.Iterator;
|
28
|
4 import java.util.LinkedList;
|
16
|
5
|
|
6 import org.junit.Assert;
|
|
7 import org.junit.Test;
|
|
8
|
|
9 import jp.ac.u_ryukyu.cr.ie.tatsuki.bbs.JuGrix;
|
|
10
|
32
|
11 public class ChildOrganizationIdsTest {
|
16
|
12
|
42
|
13 @Test
|
|
14 public void childOrganizationIdsTest() {
|
44
|
15 JuGrix jugrix = new JuGrix(true);
|
42
|
16 LinkedList<String> list = new LinkedList<String>();
|
|
17 list.add("r:11");
|
|
18 Iterator<String> ids = jugrix.childOrganizationIds("o:2", list);
|
41
|
19
|
28
|
20 Assert.assertTrue(ids.hasNext());
|
42
|
21 Assert.assertEquals(ids.next(), "o:3");
|
|
22
|
|
23 list = new LinkedList<String>();
|
|
24 list.add("rde:4");
|
|
25 ids = jugrix.childOrganizationIds("o:2", list);
|
|
26
|
34
|
27 Assert.assertTrue(ids.hasNext());
|
42
|
28 Assert.assertEquals(ids.next(), "o:3");
|
|
29 }
|
|
30
|
16
|
31 }
|