From fc702fd3b659f156a738057b5066c59e0d542dc2 Mon Sep 17 00:00:00 2001 From: "yihua.huang" Date: Sat, 11 Mar 2017 11:31:15 +0800 Subject: [PATCH] introduce mockito for test --- pom.xml | 6 ++++++ webmagic-core/pom.xml | 5 +++++ .../DuplicateRemovedSchedulerTest.java | 17 +++++++++++++++++ 3 files changed, 28 insertions(+) create mode 100644 webmagic-samples/src/test/java/us/codecraft/webmagic/samples/scheduler/DuplicateRemovedSchedulerTest.java diff --git a/pom.xml b/pom.xml index 0914e269..7fcdd069 100644 --- a/pom.xml +++ b/pom.xml @@ -64,6 +64,12 @@ 4.11 test + + org.mockito + mockito-all + 1.10.19 + test + org.apache.httpcomponents httpclient diff --git a/webmagic-core/pom.xml b/webmagic-core/pom.xml index fbd5034c..ad969612 100644 --- a/webmagic-core/pom.xml +++ b/webmagic-core/pom.xml @@ -40,6 +40,11 @@ slf4j-api + + org.mockito + mockito-all + + org.slf4j slf4j-log4j12 diff --git a/webmagic-samples/src/test/java/us/codecraft/webmagic/samples/scheduler/DuplicateRemovedSchedulerTest.java b/webmagic-samples/src/test/java/us/codecraft/webmagic/samples/scheduler/DuplicateRemovedSchedulerTest.java new file mode 100644 index 00000000..6f7a5d19 --- /dev/null +++ b/webmagic-samples/src/test/java/us/codecraft/webmagic/samples/scheduler/DuplicateRemovedSchedulerTest.java @@ -0,0 +1,17 @@ +package us.codecraft.webmagic.samples.scheduler; + +import org.junit.Test; + +/** + * @author code4crafter@gmail.com + * Date: 17/3/11 + * Time: 上午11:26 + */ +public class DuplicateRemovedSchedulerTest { + + @Test + public void testDuplicateRemoved() throws Exception { + + + } +}