Mercurial > hg > Members > tatsuki > JungleXMLReader
view src/test/java/jp/ac/u_ryukyu/cr/ie/tatsuki/functionTest/roleDescriptionElementIdsTest.java @ 24:96b9017b0e44
add roleDescriptionElementIdsTest and method
author | one |
---|---|
date | Mon, 27 Oct 2014 12:06:11 +0900 |
parents | |
children | 7f70341a78bc |
line wrap: on
line source
package jp.ac.u_ryukyu.cr.ie.tatsuki.functionTest; import java.util.Iterator; import java.util.LinkedList; import jp.ac.u_ryukyu.cr.ie.tatsuki.bbs.JuGrix; import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.Jungle; import junit.framework.Assert; import org.junit.Test; public class roleDescriptionElementIdsTest { @Test public void roleDescriptionElementIdsTest(){ JuGrix jugrix = new JuGrix(); LinkedList<String> ids = new LinkedList<String>(); //ids.add("o:34"); Iterator<String> rdeIds = jugrix.roleDescriptionElementIds("o:2",ids); Assert.assertEquals(rdeIds.next(),"rde:3"); Assert.assertEquals(rdeIds.next(),"rde:2"); Assert.assertEquals(rdeIds.next(),"rde:1"); Assert.assertEquals(rdeIds.next(),"rde:10"); } }