Mercurial > hg > Members > tatsuki > JungleXMLReader
comparison src/test/java/jp/ac/u_ryukyu/cr/ie/tatsuki/functionTest/PersonIdsTest.java @ 8:378bfec11a8d
add roleIdsTest and method
author | one |
---|---|
date | Sat, 25 Oct 2014 09:55:00 +0900 |
parents | 47eb9ee2a1db |
children | 67305f53aad0 |
comparison
equal
deleted
inserted
replaced
7:47eb9ee2a1db | 8:378bfec11a8d |
---|---|
11 | 11 |
12 public class PersonIdsTest { | 12 public class PersonIdsTest { |
13 | 13 |
14 @Test | 14 @Test |
15 public void PersonIdsTest() { | 15 public void PersonIdsTest() { |
16 try { | 16 |
17 loadXml reader = new loadXml(); | |
18 JungleTree tree = reader.loadTestData("Person.xml"); | |
19 JuGrix jugrix = new JuGrix(); | 17 JuGrix jugrix = new JuGrix(); |
20 Iterator<String> ids = jugrix.personIds(tree, "o:2"); | 18 Iterator<String> ids = jugrix.personIds("o:2"); |
21 | 19 |
22 ids.hasNext(); | 20 ids.hasNext(); |
23 Assert.assertEquals(ids.next(),"p:45"); | 21 Assert.assertEquals(ids.next(),"p:45"); |
24 ids.hasNext(); | 22 ids.hasNext(); |
25 Assert.assertEquals(ids.next(),"p:1"); | 23 Assert.assertEquals(ids.next(),"p:1"); |
26 | 24 |
27 } catch (Exception e) { | |
28 e.printStackTrace(); | |
29 } | |
30 } | 25 } |
31 } | 26 } |