[ 
https://issues.apache.org/jira/browse/NUTCH-1573?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Lewis John McGibbney updated NUTCH-1573:
----------------------------------------

    Attachment: NUTCH-1573.2.x.v2.patch

Updated patch.
This is quite large.
Process is as follows

Add the following to each Test class

{code}
import org.junit.Test;
import static org.junit.Assert.*;
{code}

and of course 

{code}
import org.junit.After;
import org.junit.Before;
{code}

if so required.

Secondly, add annotations to individual tests.

{code}
@Test
{code}

Test suites are somewhat unfavoured in JUnit 4.x so you can also see the patch 
for cases where I've dealt with the previous test suites.

Finally, constructors are not required. Most of the constructor material can be 
moved in to 

{code}
@Before
public void setUp()
{code} 

methods.

That's about it!
I will commit this today.

                
> Upgrade to most recent JUnit 4.x to improve test flexibility
> ------------------------------------------------------------
>
>                 Key: NUTCH-1573
>                 URL: https://issues.apache.org/jira/browse/NUTCH-1573
>             Project: Nutch
>          Issue Type: Improvement
>          Components: build, test
>    Affects Versions: 1.6, 2.1
>            Reporter: Lewis John McGibbney
>            Assignee: Lewis John McGibbney
>             Fix For: 1.7, 2.2
>
>         Attachments: NUTCH-1573.2.x.v1.patch, NUTCH-1573.2.x.v2.patch
>
>
> I wanted to try using the @Ignore functionality within JUnit, however I don't 
> think it is available in the current JUnit version we use in Nutch. We should 
> upgrade.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to