Mercurial > hg > Members > tatsuki > JungleXMLReader
comparison src/test/java/jp/ac/u_ryukyu/cr/ie/tatsuki/functionTest/ChildOrganizationIdsTest.java @ 32:b8d86bc46b51
remove warning and rename src file
author | one |
---|---|
date | Sun, 09 Nov 2014 17:56:49 +0900 |
parents | src/test/java/jp/ac/u_ryukyu/cr/ie/tatsuki/functionTest/childOrganizationIds.java@7f70341a78bc |
children | 96dcbd8e2fcb |
comparison
equal
deleted
inserted
replaced
31:7f70341a78bc | 32:b8d86bc46b51 |
---|---|
1 package jp.ac.u_ryukyu.cr.ie.tatsuki.functionTest; | |
2 | |
3 import java.util.Iterator; | |
4 import java.util.LinkedList; | |
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 ChildOrganizationIdsTest { | |
12 | |
13 @Test | |
14 public void childOrganizationIdsTest(){ | |
15 JuGrix jugrix = new JuGrix(false); | |
16 LinkedList<String> list = new LinkedList<String>(); | |
17 Iterator<String> ids = jugrix.childOrganizationIds("o:2", list); | |
18 | |
19 Assert.assertTrue(ids.hasNext()); | |
20 | |
21 Assert.assertEquals(ids.next(),"o:9"); | |
22 Assert.assertEquals(ids.next(),"o:3"); | |
23 | |
24 JuGrix indexJugrix = new JuGrix(true); | |
25 ids = indexJugrix.childOrganizationIds("o:2", list); | |
26 | |
27 Assert.assertTrue(ids.hasNext()); | |
28 | |
29 Assert.assertEquals(ids.next(),"o:9"); | |
30 Assert.assertEquals(ids.next(),"o:3"); | |
31 } | |
32 } |