Uploaded image for project: 'TinkerPop'
  1. TinkerPop
  2. TINKERPOP-1318

java.lang.NoSuchMethodError: org/hamcrest/Matcher.describeMismatch

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.2.0-incubating, 3.1.2-incubating
    • Fix Version/s: 3.1.3, 3.2.1
    • Component/s: test-suite
    • Labels:
      None

      Description

      I don't recall specifically how to make this fail with gremlin-test, but I did run into it at one point when writing a graph implementation. This blog describes the issue and workaround. https://tedvinke.wordpress.com/2013/12/17/mixing-junit-hamcrest-and-mockito-explaining-nosuchmethoderror/

      The error trace looks like this:

      java.lang.NoSuchMethodError: org.hamcrest.Matcher.describeMismatch(Ljava/lang/Object;Lorg/hamcrest/Description;)V
      

      There is a dependency conflict created by an older version of hamcrest coming out of mockito-all. The fix is to use mockito-core instead.

      I'll submit a patch for this.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                pluradj Jason Plurad
                Reporter:
                pluradj Jason Plurad
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: