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

ASF GitHub Bot commented on NUTCH-2971:
---------------------------------------

igiguere opened a new pull request, #870:
URL: https://github.com/apache/nutch/pull/870

   Fix for NUTCH-2971 contributed by igiguere.  Also fixes NUTCH-3128, 
NUTCH-3125
   
   This PR removes the dependency on MRunit.
   
   Adding class ReducerContextWrapper to supply a minimal Context for testing, 
and using this class to replace the use of MRunit.
   
   Removing class CrawlDbUpdateTestDriver, since only one test used it, and 
that test is now updated to use the new ReducerContextWrapper.
   
   Unrelated improvements: 
   * adding an Ant target to get the dependency tree of test projects
   * in TestProtocolHttpByProxy, look for an available port to start the proxy 
server
   
   All unit tests pass locally, on JDK 17 (of course)
   * ant clean compile test
   * ant test-full -Dtestcase=TestSegmentMerger
   * ant test-full -Dtestcase=TestSegmentMergerCrawlDatums
   
   




> Unit tests fail with JDK 17
> ---------------------------
>
>                 Key: NUTCH-2971
>                 URL: https://issues.apache.org/jira/browse/NUTCH-2971
>             Project: Nutch
>          Issue Type: Sub-task
>          Components: build, test
>    Affects Versions: 1.20
>            Reporter: Sebastian Nagel
>            Priority: Major
>             Fix For: 1.22
>
>         Attachments: TEST-org.apache.nutch.crawl.TestCrawlDbStates.txt
>
>
> When build and run using JDK 17 unit tests in TestIndexerMapReduce and 
> TestCrawlDbStates fail with:
> {noformat}
> java.lang.reflect.InaccessibleObjectException: Unable to make protected final 
> java.lang.Class ... accessible: ...
> {noformat}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to