comparison src/test/java/jp/ac/u_ryukyu/cr/ie/tatsuki/functionTest/roleIdsTest.java @ 13:2ecced397007

commit
author one
date Sat, 25 Oct 2014 19:42:44 +0900
parents 378bfec11a8d
children 54ac3718ab24
comparison
equal deleted inserted replaced
11:67305f53aad0 13:2ecced397007
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();
23 Assert.assertEquals(personIds.next(),"r:10");
24 personIds.hasNext();
22 Assert.assertEquals(personIds.next(),"r:34"); 25 Assert.assertEquals(personIds.next(),"r:34");
23 personIds.hasNext();
24 Assert.assertEquals(personIds.next(),"r:10");
25 26
26 } 27 }
27 } 28 }