Exemple #1
0
 @Test
 public void testbuildTopicUrl() throws Throwable {
   String result =
       LinkUtil.buildTopicUrl("testLinkUtilContext", "testLinkUtilVirtualWiki", "", true);
   assertNull("result", result);
 }
Exemple #2
0
 @Test
 public void testParseWikiLink() throws Throwable {
   WikiLink result = LinkUtil.parseWikiLink("en", "testLinkUtilRaw");
   assertEquals("result.getArticle()", "testLinkUtilRaw", result.getArticle());
 }
Exemple #3
0
 @Test
 public void testAppendQueryParam7() throws Throwable {
   String result = LinkUtil.appendQueryParam(null, "", "testLinkUtilValue");
   assertNull("result", result);
 }
Exemple #4
0
 @Test
 public void testAppendQueryParam6() throws Throwable {
   String result = LinkUtil.appendQueryParam("", "testLinkUtilParam", " ");
   assertEquals("result", "?testLinkUtilParam=", result);
 }
Exemple #5
0
 @Test
 public void testAppendQueryParam5() throws Throwable {
   String result =
       LinkUtil.appendQueryParam("testLinkUtilQuery", "testLinkUtilParam", "testLinkUtilValue");
   assertEquals("result", "?testLinkUtilQuery&testLinkUtilParam=testLinkUtilValue", result);
 }
Exemple #6
0
 @Test(expected = NullPointerException.class)
 public void testInterWikiThrowsNullPointerException() throws Throwable {
   LinkUtil.interWiki(null);
 }
Exemple #7
0
 @Test
 public void testParseWikiLink1() throws Throwable {
   WikiLink result = LinkUtil.parseWikiLink(null, "");
   assertNull("result.getArticle()", result.getArticle());
 }