?? 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 + -