Mercurial > hg > Members > tatsuki > JungleXMLReader
comparison src/test/java/jp/ac/u_ryukyu/cr/ie/tatsuki/functionTest/concurrentRoleIdsTest.java @ 10:ccb74917f06a
add concurrentRoleIdsTest and method
author | one |
---|---|
date | Sat, 25 Oct 2014 10:52:50 +0900 |
parents | |
children | 626e56f749a9 |
comparison
equal
deleted
inserted
replaced
9:28f383f677ff | 10:ccb74917f06a |
---|---|
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() { | |
15 JuGrix jugrix = new JuGrix(); | |
16 Iterator<String> roleIds = jugrix.concurrentRoleIds("p:1"); | |
17 Assert.assertTrue(roleIds.hasNext()); | |
18 Assert.assertEquals(roleIds.next(), "r:34"); | |
19 | |
20 roleIds = jugrix.concurrentRoleIds("p:48"); | |
21 Assert.assertFalse(roleIds.hasNext()); | |
22 } | |
23 } |