Mercurial > hg > Members > tatsuki > JungleXMLReader
changeset 16:4cfa77c61ee1
add childOrganizationIdsTest and Method
author | one |
---|---|
date | Mon, 27 Oct 2014 01:56:43 +0900 |
parents | 5ef4b1004ade |
children | f59fc20f4af9 |
files | src/main/java/jp/ac/u_ryukyu/cr/ie/tatsuki/bbs/JuGrix.java src/test/java/jp/ac/u_ryukyu/cr/ie/tatsuki/functionTest/childOrganizationIds.java |
diffstat | 2 files changed, 24 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/main/java/jp/ac/u_ryukyu/cr/ie/tatsuki/bbs/JuGrix.java Mon Oct 27 01:32:58 2014 +0900 +++ b/src/main/java/jp/ac/u_ryukyu/cr/ie/tatsuki/bbs/JuGrix.java Mon Oct 27 01:56:43 2014 +0900 @@ -465,7 +465,7 @@ return true; return false; } - ,person); + ,chilerenOrgIds); LinkedList<String> ids = new LinkedList<String>(); @@ -581,4 +581,6 @@ } + + }
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/test/java/jp/ac/u_ryukyu/cr/ie/tatsuki/functionTest/childOrganizationIds.java Mon Oct 27 01:56:43 2014 +0900 @@ -0,0 +1,21 @@ +package jp.ac.u_ryukyu.cr.ie.tatsuki.functionTest; + +import java.util.Iterator; + +import org.junit.Assert; +import org.junit.Test; + +import jp.ac.u_ryukyu.cr.ie.tatsuki.bbs.JuGrix; + +public class childOrganizationIds { + + @Test + public void childOrganizationIdsTest(){ + JuGrix jugrix = new JuGrix(); + Iterator<String> ids = jugrix.childOrganizationIds("o:2"); + + Assert.assertTrue(ids.hasNext()); + Assert.assertEquals(ids.next(),"o:3"); + Assert.assertEquals(ids.next(),"o:99"); + } +}