예제 #1
0
 public void testConcatPath_siblingDiretory_returnsSibling() {
   String ret = Utility.concatPath("root", "../dummy/content.opf");
   Assert.assertEquals("dummy/content.opf", ret);
 }
예제 #2
0
 public void testConcatPath_absolute_returnsAbsolute() {
   String ret = Utility.concatPath("root", "/content.opf");
   Assert.assertEquals("content.opf", ret);
 }
예제 #3
0
 public void testConcatPath_subdiretory_returnIncludesSubdir() {
   String ret = Utility.concatPath("root", "dummy/content.opf");
   Assert.assertEquals("root/dummy/content.opf", ret);
 }
예제 #4
0
 public void testConcatPath_basic_returnSuccess() {
   String ret = Utility.concatPath("root", "content.opf");
   Assert.assertEquals("root/content.opf", ret);
 }
예제 #5
0
 public void testExtractPath_hasParent_returnsParent() {
   String ret = Utility.extractPath("root/content.opf");
   Assert.assertEquals("root", ret);
 }
예제 #6
0
 public void testExtractPath_noParent_returnsEmptyString() {
   String ret = Utility.extractPath("content.opf");
   Assert.assertEquals("", ret);
 }