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