-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Closed
Description
Hi, we have one pesky test (one from an OfficeDev repo) that starts failing with the recent @InjectMocks changes. First it was the ClassCastException that was reported in #2958, but after the fix for that, it's a NullPointerException:
$ git clone [email protected]:cpovirk/ews-java-api.git -b mockitonpe # or check out 3ed334391d09f20e36ecd8e2a0efb3529085e1c6 if you prefer a SHA
$ cd ews-java-api
$ mvn clean install -Dtest=ChangeCollectionTest -Dmaven.javadoc.skip
...
java.lang.NullPointerException
at org.mockito.internal.configuration.injection.filter.TypeBasedCandidateFilter.getSuperTypes(TypeBasedCandidateFilter.java:79)
at org.mockito.internal.configuration.injection.filter.TypeBasedCandidateFilter.isCompatibleTypes(TypeBasedCandidateFilter.java:58)
at org.mockito.internal.configuration.injection.filter.TypeBasedCandidateFilter.lambda$isCompatibleTypes$0(TypeBasedCandidateFilter.java:62)
...
I'll attach the full log, along with logs from the CCE days and from before the @InjectMocks changes.
- NPE: 530.txt
- CCE: 521snapshot.txt
- passing: 512snapshot.txt
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels