annotate src/test/java/jp/ac/u_ryukyu/cr/ie/tatsuki/functionTest/deepParentOrganizationIdsTest.java @ 22:b6b5e3f48988

deepParentOrganizationIdsPlusTest and Method
author one
date Mon, 27 Oct 2014 09:41:14 +0900
parents daf0c3c810f9
children ef3fae2e7f0c
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
21
daf0c3c810f9 add deepParentOrganizationIdsTest and Method
one
parents:
diff changeset
1 package jp.ac.u_ryukyu.cr.ie.tatsuki.functionTest;
daf0c3c810f9 add deepParentOrganizationIdsTest and Method
one
parents:
diff changeset
2
daf0c3c810f9 add deepParentOrganizationIdsTest and Method
one
parents:
diff changeset
3 import java.util.Iterator;
daf0c3c810f9 add deepParentOrganizationIdsTest and Method
one
parents:
diff changeset
4 import java.util.LinkedList;
daf0c3c810f9 add deepParentOrganizationIdsTest and Method
one
parents:
diff changeset
5
daf0c3c810f9 add deepParentOrganizationIdsTest and Method
one
parents:
diff changeset
6 import jp.ac.u_ryukyu.cr.ie.tatsuki.bbs.JuGrix;
daf0c3c810f9 add deepParentOrganizationIdsTest and Method
one
parents:
diff changeset
7 import junit.framework.Assert;
daf0c3c810f9 add deepParentOrganizationIdsTest and Method
one
parents:
diff changeset
8
daf0c3c810f9 add deepParentOrganizationIdsTest and Method
one
parents:
diff changeset
9 import org.junit.Test;
daf0c3c810f9 add deepParentOrganizationIdsTest and Method
one
parents:
diff changeset
10
daf0c3c810f9 add deepParentOrganizationIdsTest and Method
one
parents:
diff changeset
11 public class deepParentOrganizationIdsTest {
daf0c3c810f9 add deepParentOrganizationIdsTest and Method
one
parents:
diff changeset
12
daf0c3c810f9 add deepParentOrganizationIdsTest and Method
one
parents:
diff changeset
13 @Test
daf0c3c810f9 add deepParentOrganizationIdsTest and Method
one
parents:
diff changeset
14 public void deepParentOrganizationIds(){
daf0c3c810f9 add deepParentOrganizationIdsTest and Method
one
parents:
diff changeset
15 JuGrix jugrix = new JuGrix();
daf0c3c810f9 add deepParentOrganizationIdsTest and Method
one
parents:
diff changeset
16 LinkedList<String> filterIds = new LinkedList<String>();
22
b6b5e3f48988 deepParentOrganizationIdsPlusTest and Method
one
parents: 21
diff changeset
17 Iterator<String> childrenIds = jugrix.deepParentOrganizationIdsPlus("o:2", filterIds);
b6b5e3f48988 deepParentOrganizationIdsPlusTest and Method
one
parents: 21
diff changeset
18 Assert.assertEquals(childrenIds.next(),"o:2");
21
daf0c3c810f9 add deepParentOrganizationIdsTest and Method
one
parents:
diff changeset
19 Assert.assertEquals(childrenIds.next(),"o:23");
daf0c3c810f9 add deepParentOrganizationIdsTest and Method
one
parents:
diff changeset
20 Assert.assertEquals(childrenIds.next(),"o:22");
daf0c3c810f9 add deepParentOrganizationIdsTest and Method
one
parents:
diff changeset
21
daf0c3c810f9 add deepParentOrganizationIdsTest and Method
one
parents:
diff changeset
22 filterIds.add("r:2");
daf0c3c810f9 add deepParentOrganizationIdsTest and Method
one
parents:
diff changeset
23 childrenIds = jugrix.deepParentOrganizationIds("o:2", filterIds);
daf0c3c810f9 add deepParentOrganizationIdsTest and Method
one
parents:
diff changeset
24
daf0c3c810f9 add deepParentOrganizationIdsTest and Method
one
parents:
diff changeset
25 Assert.assertEquals(childrenIds.next(),"o:23");
daf0c3c810f9 add deepParentOrganizationIdsTest and Method
one
parents:
diff changeset
26
daf0c3c810f9 add deepParentOrganizationIdsTest and Method
one
parents:
diff changeset
27 }
daf0c3c810f9 add deepParentOrganizationIdsTest and Method
one
parents:
diff changeset
28 }