Mercurial > hg > Members > tatsuki > JungleXMLReader
comparison src/test/java/jp/ac/u_ryukyu/cr/ie/tatsuki/functionTest/deepPersonIdsTest.java @ 31:7f70341a78bc
all function use index
author | one |
---|---|
date | Sat, 08 Nov 2014 06:31:14 +0900 |
parents | 0fce1292ab38 |
children |
comparison
equal
deleted
inserted
replaced
30:f45b1c839753 | 31:7f70341a78bc |
---|---|
8 import org.junit.Test; | 8 import org.junit.Test; |
9 | 9 |
10 public class deepPersonIdsTest { | 10 public class deepPersonIdsTest { |
11 @Test | 11 @Test |
12 public void deepPersonIdsTest(){ | 12 public void deepPersonIdsTest(){ |
13 JuGrix jugrix = new JuGrix(); | 13 JuGrix jugrix = new JuGrix(false); |
14 LinkedList<String> filterIds = new LinkedList<String>(); | 14 LinkedList<String> filterIds = new LinkedList<String>(); |
15 //filterIds.add("r:9"); | 15 //filterIds.add("r:9"); |
16 Iterator<String> ids = jugrix.deepPersonIds("o:3",filterIds); | 16 Iterator<String> ids = jugrix.deepPersonIds("o:3",filterIds); |
17 System.out.println("------------------------------------------------"); | 17 System.out.println("------------------------------------------------"); |
18 for (;ids.hasNext();) { | 18 for (;ids.hasNext();) { |
19 System.out.println(ids.next()); | 19 System.out.println(ids.next()); |
20 } | 20 } |
21 | |
22 | |
23 jugrix = new JuGrix(true); | |
24 filterIds = new LinkedList<String>(); | |
25 //filterIds.add("r:9"); | |
26 ids = jugrix.deepPersonIds("o:3",filterIds); | |
27 System.out.println("------------------------------------------------"); | |
28 for (;ids.hasNext();) { | |
29 System.out.println(ids.next()); | |
30 } | |
21 } | 31 } |
32 | |
22 | 33 |
23 } | 34 } |