[ 
https://issues.apache.org/jira/browse/NUTCH-1164?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14155975#comment-14155975
 ] 

Nima Falaki commented on NUTCH-1164:
------------------------------------

I have written a patch to port it over from 2.x to 1.x trunk. I noticed that 
this Junit test case was not in 1.x trunk even though in the build.xml file 
there was an entry for this junit test file. 

I added 3 things

1. I uncommented the entry for this junit test in a previous commit that I made 
(this is in the build.xml file, since in a previous patch that I released I had 
commented this out in the build.xml since this Junit classs was not working)
Here is the Jira issue NUTCH-1866

2. I added the Junit test in the appropriate folder. Since 2.x has a data 
structure called WebPage, I changed that to CrawlDatum instead for 1.x, since 
1.x only does not include the WebPage class. 

3. The third thing I added was the nutch-site-test.xml file which 2.x has. 

Again, this patch should only be used in the trunk branch as I am porting over 
from 2.x Junit to 1.x 

> Write JUnit tests for protocol-http
> -----------------------------------
>
>                 Key: NUTCH-1164
>                 URL: https://issues.apache.org/jira/browse/NUTCH-1164
>             Project: Nutch
>          Issue Type: Sub-task
>    Affects Versions: nutchgora
>            Reporter: Lewis John McGibbney
>              Labels: test
>             Fix For: 2.3
>
>         Attachments: NUTCH-1164.patch, 
> TEST-org.apache.nutch.protocol.http.TestProtocolHttp.txt
>
>
> This issue should provide a single Junit test as part of an effort to provide 
> JUnit tests for all nutchgora plugins



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to