NoSuchMethodError with Hamcrest 1.3 & JUnit 4.11

前端 未结 8 1363
独厮守ぢ
独厮守ぢ 2020-12-30 19:03

Another instance of the NoSuchMethodError for the JUnit & Hamcrest combination. Offending code:

assertThat(dirReader.document(0).getFields()         


        
8条回答
  •  独厮守ぢ
    2020-12-30 19:40

    If you are using Eclipse, the "Open Type" tool (CTRL+SHIFT+T) can help you find the problematic package. Just search for the class name (e.g., Description), multiple occurrences of the same class from different JARs are red flags.

提交回复
热议问题