# HG changeset patch # User one # Date 1414233764 -32400 # Node ID 2ecced39700771cf42011cd7c576b41cc836336c # Parent 67305f53aad079054c549cb66f61d2e4496805dc commit diff -r 67305f53aad0 -r 2ecced397007 src/main/java/jp/ac/u_ryukyu/cr/ie/tatsuki/bbs/JuGrix.java --- a/src/main/java/jp/ac/u_ryukyu/cr/ie/tatsuki/bbs/JuGrix.java Sat Oct 25 17:10:03 2014 +0900 +++ b/src/main/java/jp/ac/u_ryukyu/cr/ie/tatsuki/bbs/JuGrix.java Sat Oct 25 19:42:44 2014 +0900 @@ -5,7 +5,6 @@ import java.util.regex.Matcher; import java.util.regex.Pattern; -import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.Jungle; import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.JungleTree; import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.store.NodePath; import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.store.impl.TreeNode; @@ -55,7 +54,7 @@ public Iterator personIds(LinkedList ids){ - LinkedList personIds = new LinkedList(); + LinkedList personIds = new LinkedList(); for (String id : ids) { personIds.addAll(personIdsSearch(id)); @@ -294,7 +293,7 @@ if (!chilrenOrgIdsIterator.hasNext()) return new NullIterator(); - TreeNode chilerenOrgIds = chilrenOrgIdsIterator.next().left(); + //TreeNode chilerenOrgIds = chilrenOrgIdsIterator.next().left(); Iterator> chilrenOrgIdIterator = ifTraverser.find( (TreeNode node) -> { diff -r 67305f53aad0 -r 2ecced397007 src/test/java/jp/ac/u_ryukyu/cr/ie/tatsuki/functionTest/roleIdsTest.java --- a/src/test/java/jp/ac/u_ryukyu/cr/ie/tatsuki/functionTest/roleIdsTest.java Sat Oct 25 17:10:03 2014 +0900 +++ b/src/test/java/jp/ac/u_ryukyu/cr/ie/tatsuki/functionTest/roleIdsTest.java Sat Oct 25 19:42:44 2014 +0900 @@ -16,12 +16,13 @@ Iterator orgIds = jugrix.roleIds("o:6"); orgIds.hasNext(); Assert.assertEquals(orgIds.next(),"r:18"); - + Assert.assertFalse(orgIds.hasNext()); + Iterator personIds = jugrix.roleIds("p:1"); personIds.hasNext(); - Assert.assertEquals(personIds.next(),"r:34"); + Assert.assertEquals(personIds.next(),"r:10"); personIds.hasNext(); - Assert.assertEquals(personIds.next(),"r:10"); + Assert.assertEquals(personIds.next(),"r:34"); } }