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
|
|
11 public class childOrganizationIds {
|
|
12
|
|
13 @Test
|
|
14 public void childOrganizationIdsTest(){
|
28
|
15 JuGrix jugrix = new JuGrix(false);
|
|
16 LinkedList<String> list = new LinkedList<String>();
|
|
17 Iterator<String> ids = jugrix.childOrganizationIds("o:2", list);
|
16
|
18
|
|
19 Assert.assertTrue(ids.hasNext());
|
|
20 Assert.assertEquals(ids.next(),"o:3");
|
28
|
21 Assert.assertEquals(ids.next(),"o:9");
|
|
22
|
|
23 JuGrix indexJugrix = new JuGrix(true);
|
|
24 ids = indexJugrix.childOrganizationIds("o:2", list);
|
|
25
|
|
26 Assert.assertTrue(ids.hasNext());
|
|
27 Assert.assertEquals(ids.next(),"o:3");
|
|
28 Assert.assertEquals(ids.next(),"o:9");
|
16
|
29 }
|
|
30 }
|