fix tests

master
yihua.huang 2014-04-13 13:00:31 +08:00
parent b14f0ee479
commit f7950ebcab
1 changed files with 0 additions and 5 deletions

View File

@ -1,7 +1,6 @@
package us.codecraft.webmagic.selector;
import org.junit.Test;
import us.codecraft.webmagic.Page;
import static org.assertj.core.api.Assertions.assertThat;
@ -17,9 +16,5 @@ public class JsonTest {
public void testRemovePadding() throws Exception {
String name = new Json(text).removePadding("callback").jsonPath("$.name").get();
assertThat(name).isEqualTo("json");
Page page = null;
page.getJson().jsonPath("$.name").get();
page.getJson().removePadding("callback").jsonPath("$.name").get();
}
}