Mercurial > hg > Members > tatsuki > JungleXMLReader
comparison src/test/java/jp/ac/u_ryukyu/cr/ie/tatsuki/functionTest/concurrentRoleIdsTest.java @ 29:626e56f749a9
use index competentRoleIdTest and concurrentRoleIdsTest
author | one |
---|---|
date | Fri, 07 Nov 2014 03:22:11 +0900 |
parents | ccb74917f06a |
children |
comparison
equal
deleted
inserted
replaced
28:ed831b2fc156 | 29:626e56f749a9 |
---|---|
10 | 10 |
11 public class concurrentRoleIdsTest { | 11 public class concurrentRoleIdsTest { |
12 | 12 |
13 @Test | 13 @Test |
14 public void concurrentRoleIdsTest() { | 14 public void concurrentRoleIdsTest() { |
15 JuGrix jugrix = new JuGrix(); | 15 JuGrix jugrix = new JuGrix(false); |
16 Iterator<String> roleIds = jugrix.concurrentRoleIds("p:1"); | 16 Iterator<String> roleIds = jugrix.concurrentRoleIds("p:1"); |
17 Assert.assertTrue(roleIds.hasNext()); | 17 Assert.assertTrue(roleIds.hasNext()); |
18 Assert.assertEquals(roleIds.next(), "r:34"); | 18 Assert.assertEquals(roleIds.next(), "r:34"); |
19 | 19 |
20 jugrix = new JuGrix(true); | |
21 roleIds = jugrix.concurrentRoleIds("p:1"); | |
22 Assert.assertTrue(roleIds.hasNext()); | |
23 Assert.assertEquals(roleIds.next(), "r:34"); | |
24 | |
20 roleIds = jugrix.concurrentRoleIds("p:48"); | 25 roleIds = jugrix.concurrentRoleIds("p:48"); |
21 Assert.assertFalse(roleIds.hasNext()); | 26 Assert.assertFalse(roleIds.hasNext()); |
22 } | 27 } |
23 } | 28 } |