view src/test/java/jp/ac/u_ryukyu/cr/ie/tatsuki/functionTest/roleDescriptionElementIdsTest.java @ 31:7f70341a78bc

all function use index
author one
date Sat, 08 Nov 2014 06:31:14 +0900
parents 96b9017b0e44
children
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(true
		    );
		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:10");
    Assert.assertEquals(rdeIds.next(),"rde:1");
	  
	  jugrix = new JuGrix(true);
    ids = new LinkedList<String>();
    //ids.add("o:34");
    rdeIds = jugrix.roleDescriptionElementIds("o:2",ids);
    Assert.assertEquals(rdeIds.next(),"rde:3");
    Assert.assertEquals(rdeIds.next(),"rde:2");
    Assert.assertEquals(rdeIds.next(),"rde:10");
    Assert.assertEquals(rdeIds.next(),"rde:1");
	}
}