File tree Expand file tree Collapse file tree 4 files changed +29
-17
lines changed
main/java/cn/edu/hfut/dmic/webcollector/net
test/java/cn/edu/hfut/dmic/webcollector/util Expand file tree Collapse file tree 4 files changed +29
-17
lines changed Original file line number Diff line number Diff line change 81
81
</plugin >
82
82
83
83
84
+ <plugin >
85
+ <groupId >org.apache.maven.plugins</groupId >
86
+ <artifactId >maven-javadoc-plugin</artifactId >
87
+ <version >3.0.1</version >
88
+ <configuration >
89
+ </configuration >
90
+ <executions >
91
+ <execution >
92
+ <id >attach-javadoc</id >
93
+ <phase >verify</phase >
94
+ <goals >
95
+ <goal >jar</goal >
96
+ </goals >
97
+ </execution >
98
+ </executions >
99
+ </plugin >
84
100
85
101
<!--
86
102
<plugin>
94
110
<autoReleaseAfterClose>true</autoReleaseAfterClose>
95
111
</configuration>
96
112
</plugin>
97
- <plugin>
98
- <groupId>org.apache.maven.plugins</groupId>
99
- <artifactId>maven-javadoc-plugin</artifactId>
100
- <version>3.0.1</version>
101
- <configuration>
102
- </configuration>
103
- <executions>
104
- <execution>
105
- <id>attach-javadoc</id>
106
- <phase>verify</phase>
107
- <goals>
108
- <goal>jar</goal>
109
- </goals>
110
- </execution>
111
- </executions>
112
- </plugin>
113
113
114
114
<plugin>
115
115
<groupId>org.apache.maven.plugins</groupId>
Original file line number Diff line number Diff line change
1
+ package cn .edu .hfut .dmic .webcollector .net ;
2
+
3
+ import cn .edu .hfut .dmic .webcollector .conf .DefaultConfigured ;
4
+ import cn .edu .hfut .dmic .webcollector .model .CrawlDatum ;
5
+ import cn .edu .hfut .dmic .webcollector .model .Page ;
6
+
7
+ public abstract class CommonRequester extends DefaultConfigured implements Requester {
8
+ @ Override
9
+ public Page getResponse (String url ) throws Exception {
10
+ return getResponse (new CrawlDatum (url ));
11
+ }
12
+ }
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ public void testInject(DBManager dbManager) throws Exception {
49
49
50
50
String tempCrawlPath = "temp_test_crawl" ;
51
51
52
- // @Test
52
+ @ Test
53
53
public void testBerkeleyDBInjector () throws Exception {
54
54
BerkeleyDBManager dbManager = new BerkeleyDBManager (tempCrawlPath );
55
55
testInject (dbManager );
You can’t perform that action at this time.
0 commit comments