Mercurial > hg > Members > tatsuki > JungleXMLReader
comparison src/test/java/jp/ac/u_ryukyu/cr/ie/tatsuki/functionTest/deepParentOrganizationIdsPlusTest.java @ 22:b6b5e3f48988
deepParentOrganizationIdsPlusTest and Method
author | one |
---|---|
date | Mon, 27 Oct 2014 09:41:14 +0900 |
parents | |
children | ef3fae2e7f0c |
comparison
equal
deleted
inserted
replaced
21:daf0c3c810f9 | 22:b6b5e3f48988 |
---|---|
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 import junit.framework.Assert; | |
8 | |
9 import org.junit.Test; | |
10 | |
11 public class deepParentOrganizationIdsPlusTest { | |
12 @Test | |
13 public void deepParentOrganizationIdsPlus(){ | |
14 JuGrix jugrix = new JuGrix(); | |
15 LinkedList<String> filterIds = new LinkedList<String>(); | |
16 //filterIds.add("r:2"); | |
17 Iterator<String> childrenIds = jugrix.deepParentOrganizationIdsPlus("o:2", filterIds); | |
18 | |
19 Assert.assertEquals(childrenIds.next(),"o:23"); | |
20 Assert.assertEquals(childrenIds.next(),"o:22"); | |
21 | |
22 filterIds.add("r:2"); | |
23 childrenIds = jugrix.deepParentOrganizationIds("o:2", filterIds); | |
24 | |
25 Assert.assertEquals(childrenIds.next(),"o:23"); | |
26 | |
27 } | |
28 } |