view src/test/java/jp/ac/u_ryukyu/cr/ie/tatsuki/functionTest/ChildOrganizationIdsTest.java @ 41:037731e99d6e

fit JungleCore 144
author one
date Mon, 17 Nov 2014 18:47:10 +0900
parents 96dcbd8e2fcb
children 1bdd50e26fac
line wrap: on
line source

package jp.ac.u_ryukyu.cr.ie.tatsuki.functionTest;

import java.util.Iterator;
import java.util.LinkedList;

import org.junit.Assert;
import org.junit.Test;

import jp.ac.u_ryukyu.cr.ie.tatsuki.bbs.JuGrix;

public class ChildOrganizationIdsTest {

	@Test
	public void childOrganizationIdsTest(){
		JuGrix jugrix = new JuGrix(false);
		LinkedList<String> list = new LinkedList<String>();
		Iterator<String> ids = jugrix.childOrganizationIds("o:2", list);

		
		Assert.assertTrue(ids.hasNext());
    Assert.assertEquals(ids.next(),"o:9");
    Assert.assertTrue(ids.hasNext());
		Assert.assertEquals(ids.next(),"o:3");
    JuGrix indexJugrix = new JuGrix(true);
    ids = indexJugrix.childOrganizationIds("o:2", list);
    

    Assert.assertTrue(ids.hasNext());
    Assert.assertEquals(ids.next(),"o:9");
    Assert.assertTrue(ids.hasNext());
    Assert.assertEquals(ids.next(),"o:3");
	}
}