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