-
Task
-
Resolution: Obsolete
-
Neutral
-
None
-
BOM 5.7
-
None
-
Java 9/10
-
-
Empty show more show less
-
Empty show more show less
There are many failing tests when upgrading Mockito to version 2.
Previous work-in-progress: https://git.magnolia-cms.com/projects/VNPD/repos/main/commits?until=refs%2Fheads%2Fdev%2Fjdk9-tests
—and some upgrade notes from that effort:
Mockito - illegal reflective access warnings
- https://github.com/mockito/mockito/issues/520
- Mockito 2 is Java 9 compatible.
- API incompatibilities - What's new in Mockito 2
- InvocationOnMock.getArgumentAt(int,Class) was replaced with InvocationOnMock.getArgument(int), it simplifies the implementation of custom answers.
- Mockito#argThat no longer taking a hamcrest matcher
- option 1. Replace with lambda
- option 2. Replace static-import with org.mockito.hamcrest.MockitoHamcrest.argThat
- https://static.javadoc.io/org.mockito/mockito-core/2.2.9/org/mockito/ArgumentMatcher.html
Acceptance criteria
- split to
-
MGNLCE-298 Build on JDK 11 (ce)
- Resolved
-
MGNLEE-689 Build on JDK 11 (dx-core)
- Resolved
-
MGNLUI-7078 Build on JDK 11 (ui)
- Resolved
-
MAGNOLIA-8369 Build on JDK 11 (main)
- Closed