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