Uploaded image for project: 'Nutch'
  1. Nutch
  2. NUTCH-2228

Plugin index-replace unit test broken on Java 8

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 1.11
    • Fix Version/s: 1.12
    • Component/s: indexer
    • Labels:
      None
    • Patch Info:
      Patch Available

      Description

      ------------- Standard Error -----------------
      SLF4J: Class path contains multiple SLF4J bindings.
      SLF4J: Found binding in [jar:file:/home/markus/projects/apache/nutch/trunk/build/test/lib/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
      SLF4J: Found binding in [jar:file:/home/markus/projects/apache/nutch/trunk/build/lib/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
      SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
      SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
      ------------- ---------------- ---------------
      
      Testcase: testGlobalAndUrlNotMatchesPattern took 1.052 sec
      Testcase: testGlobalReplacement took 0.149 sec
      Testcase: testReplacementsWithFlags took 0.105 sec
      Testcase: testUrlMatchesPattern took 0.116 sec
      Testcase: testReplacementsDifferentTarget took 0.099 sec
      Testcase: testReplacementsRunInSpecifedOrder took 0.1 sec
      Testcase: testInvalidPatterns took 0.078 sec
              FAILED
      expected:<With this []plugin, I control th...> but was:<With this [awesome ]plugin, I control th...>
      junit.framework.AssertionFailedError: expected:<With this []plugin, I control th...> but was:<With this [awesome ]plugin, I control th...>
              at org.apache.nutch.indexer.replace.TestIndexReplace.testInvalidPatterns(TestIndexReplace.java:203)
      
      Testcase: testGlobalAndUrlMatchesPattern took 0.079 sec
      Testcase: testUrlNotMatchesPattern took 0.06 sec
      Testcase: testPropertyParse took 0.03 sec
      

      Does the initial committer know what the outcome of the test should be?

        Attachments

        1. NUTCH-2228.patch
          1.0 kB
          Sebastian Nagel

          Activity

            People

            • Assignee:
              markus17 Markus Jelsma
              Reporter:
              markus17 Markus Jelsma
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: