test_issue409 #409

master
yihua.huang 2017-06-03 15:09:51 +08:00
parent 4cd5b4f93e
commit 17ae500c77
1 changed files with 5 additions and 4 deletions

View File

@ -5,6 +5,8 @@ import org.junit.Test;
import us.codecraft.webmagic.model.AfterExtractor; import us.codecraft.webmagic.model.AfterExtractor;
import us.codecraft.webmagic.model.annotation.ExtractBy; import us.codecraft.webmagic.model.annotation.ExtractBy;
import static org.assertj.core.api.Assertions.assertThat;
/** /**
* @author code4crafter@gmail.com * @author code4crafter@gmail.com
* Date: 2017/6/3 * Date: 2017/6/3
@ -77,14 +79,13 @@ public class SimpleHttpClientTest {
} }
} }
@Ignore
@Test @Test
public void test() throws Exception { public void test() throws Exception {
// SimpleHttpClient simpleClient = ; Weather weather = new SimpleHttpClient(Site.me()).get("http://www.weather.com.cn/weather/101020100.shtml", Weather.class);
// Weather weather = simpleClient.get("http://www.weather.com.cn/weather/101020100.shtml", Weather.class); assertThat(weather).isNotNull();
// assertThat(weather).isNotNull();
} }
@Ignore
@Test @Test
public void test_issue409() throws Exception { public void test_issue409() throws Exception {
System.out.println(new SimpleHttpClient(Site.me()).get("https://www.beijing-hyundai.com.cn").getHtml()); System.out.println(new SimpleHttpClient(Site.me()).get("https://www.beijing-hyundai.com.cn").getHtml());