10
|
1 package jp.ac.u_ryukyu.cr.ie.tatsuki.functionTest;
|
|
2
|
|
3 import java.util.Iterator;
|
|
4
|
|
5 import org.junit.Test;
|
|
6 import org.junit.experimental.theories.suppliers.TestedOn;
|
|
7
|
|
8 import jp.ac.u_ryukyu.cr.ie.tatsuki.bbs.JuGrix;
|
|
9 import junit.framework.Assert;
|
|
10
|
|
11 public class concurrentRoleIdsTest {
|
|
12
|
|
13 @Test
|
|
14 public void concurrentRoleIdsTest() {
|
29
|
15 JuGrix jugrix = new JuGrix(false);
|
10
|
16 Iterator<String> roleIds = jugrix.concurrentRoleIds("p:1");
|
|
17 Assert.assertTrue(roleIds.hasNext());
|
|
18 Assert.assertEquals(roleIds.next(), "r:34");
|
|
19
|
29
|
20 jugrix = new JuGrix(true);
|
|
21 roleIds = jugrix.concurrentRoleIds("p:1");
|
|
22 Assert.assertTrue(roleIds.hasNext());
|
|
23 Assert.assertEquals(roleIds.next(), "r:34");
|
|
24
|
10
|
25 roleIds = jugrix.concurrentRoleIds("p:48");
|
|
26 Assert.assertFalse(roleIds.hasNext());
|
|
27 }
|
|
28 }
|