📄 linkbackextractortest.java
字号:
package org.roller.util;import org.roller.presentation.bookmarks.BookmarksActionTest;import junit.framework.Test;import junit.framework.TestCase;import junit.framework.TestSuite;/** * @author davidj */public class LinkbackExtractorTest extends TestCase{ /** * Constructor for LinkbackExtractorTest. * @param arg0 */ public LinkbackExtractorTest(String arg0) { super(arg0); } public static void main(String[] args) { } /** * @see TestCase#setUp() */ protected void setUp() throws Exception { super.setUp(); } /** * @see TestCase#tearDown() */ protected void tearDown() throws Exception { super.tearDown(); } public void testLinkbackExtractor() throws Exception { String[][] testrefs = new String[][] { { "http://www.rollerweblogger.org/page/roller", "http://staff.develop.com/halloway/weblog/2003/01/23.html" }, { "http://postneo.com/", "http://www.rollerweblogger.org/page/roller/20030125" } }; for ( int i=0; i<testrefs.length; i++ ) { String refurl = testrefs[i][0]; String requrl = testrefs[i][1]; LinkbackExtractor le = new LinkbackExtractor(refurl,requrl); System.out.println(le.getTitle()); System.out.println(le.getPermalink()); System.out.println(le.getExcerpt()); } } public static Test suite() { return new TestSuite(LinkbackExtractorTest.class); }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -