comparison src/test/java/jp/ac/u_ryukyu/cr/ie/tatsuki/functionTest/roleIdsTest.java @ 14:54ac3718ab24

Merge with 2ecced39700771cf42011cd7c576b41cc836336c
author one
date Mon, 27 Oct 2014 00:16:44 +0900
parents f93d15042315 2ecced397007
children 7f70341a78bc
comparison
equal deleted inserted replaced
12:f93d15042315 14:54ac3718ab24
14 public void roleIdsTest(){ 14 public void roleIdsTest(){
15 JuGrix jugrix = new JuGrix(); 15 JuGrix jugrix = new JuGrix();
16 Iterator<String> orgIds = jugrix.roleIds("o:6"); 16 Iterator<String> orgIds = jugrix.roleIds("o:6");
17 orgIds.hasNext(); 17 orgIds.hasNext();
18 Assert.assertEquals(orgIds.next(),"r:18"); 18 Assert.assertEquals(orgIds.next(),"r:18");
19 19 Assert.assertFalse(orgIds.hasNext());
20
20 Iterator<String> personIds = jugrix.roleIds("p:1"); 21 Iterator<String> personIds = jugrix.roleIds("p:1");
21 personIds.hasNext(); 22 personIds.hasNext();
22 Assert.assertEquals(personIds.next(),"r:10"); 23 Assert.assertEquals(personIds.next(),"r:10");
23 personIds.hasNext(); 24 personIds.hasNext();
24 Assert.assertEquals(personIds.next(),"r:34"); 25 Assert.assertEquals(personIds.next(),"r:34");