Skip to content

Instantly share code, notes, and snippets.

View ColinHebert's full-sized avatar

Colin Hebert ColinHebert

  • Diplayr
  • Sydney, Australia
View GitHub Profile
~/Documents/poc(mockitobug) $ ./gradlew clean test
> Task :compileTestKotlin
Using Kotlin incremental compilation
> Task :junitPlatformTest FAILED
Mock for Iterator, hashCode: 1378592036
Mock for Iterator, hashCode: 1876390738
Mock for Iterator, hashCode: 810557024
~/Documents/poc(mockitobug-2) $ ./gradlew clean test ⏎
> Task :compileTestKotlin
Using Kotlin incremental compilation
> Task :junitPlatformTest FAILED
org.mockito.exceptions.base.MockitoException:
Mockito cannot mock this class: interface java.util.Iterator.
If you're not sure why you're getting this error, please report to the mailing list.