annotate src/test/java/jp/ac/u_ryukyu/cr/ie/tatsuki/functionTest/stringPathToIdTest.java @ 23:a9dc4ffd1f52

add stringPathToIdTest and Method
author one
date Mon, 27 Oct 2014 10:40:29 +0900
parents
children 7f70341a78bc
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
23
a9dc4ffd1f52 add stringPathToIdTest and Method
one
parents:
diff changeset
1 package jp.ac.u_ryukyu.cr.ie.tatsuki.functionTest;
a9dc4ffd1f52 add stringPathToIdTest and Method
one
parents:
diff changeset
2
a9dc4ffd1f52 add stringPathToIdTest and Method
one
parents:
diff changeset
3 import jp.ac.u_ryukyu.cr.ie.tatsuki.bbs.JuGrix;
a9dc4ffd1f52 add stringPathToIdTest and Method
one
parents:
diff changeset
4 import junit.framework.Assert;
a9dc4ffd1f52 add stringPathToIdTest and Method
one
parents:
diff changeset
5
a9dc4ffd1f52 add stringPathToIdTest and Method
one
parents:
diff changeset
6 import org.junit.Test;
a9dc4ffd1f52 add stringPathToIdTest and Method
one
parents:
diff changeset
7
a9dc4ffd1f52 add stringPathToIdTest and Method
one
parents:
diff changeset
8 public class stringPathToIdTest {
a9dc4ffd1f52 add stringPathToIdTest and Method
one
parents:
diff changeset
9 @Test
a9dc4ffd1f52 add stringPathToIdTest and Method
one
parents:
diff changeset
10 public void stringPathToIdTest(){
a9dc4ffd1f52 add stringPathToIdTest and Method
one
parents:
diff changeset
11 JuGrix jugrix = new JuGrix();
a9dc4ffd1f52 add stringPathToIdTest and Method
one
parents:
diff changeset
12 String id = jugrix.stringPathToId("r:path:エスアールエルテクノシステム/臨検システム部/業務システムグループ");
a9dc4ffd1f52 add stringPathToIdTest and Method
one
parents:
diff changeset
13 Assert.assertEquals(id,"r:43");
a9dc4ffd1f52 add stringPathToIdTest and Method
one
parents:
diff changeset
14 id = jugrix.stringPathToId("rde:path:システム開発申請書/組織的役割/起票部署");
a9dc4ffd1f52 add stringPathToIdTest and Method
one
parents:
diff changeset
15 Assert.assertEquals(id, "rde:10");
a9dc4ffd1f52 add stringPathToIdTest and Method
one
parents:
diff changeset
16 }
a9dc4ffd1f52 add stringPathToIdTest and Method
one
parents:
diff changeset
17 }