Description
I don't know when Hadoop picked up Mockito, but it has been frozen at 1.8.5 since the switch to maven in 2011.
Mockito is now at version 2.1, with lots of Java 8 support. That' s not just defining actions as closures, but in supporting Optional types, mocking methods in interfaces, etc.
It's only used for testing, and, provided there aren't regressions, cost of upgrade is low. The good news: test tools usually come with good test coverage. The bad: mockito does go deep into java bytecodes.
Attachments
Attachments
Issue Links
- blocks
-
HADOOP-15338 Java 11 runtime support
- Resolved
- breaks
-
YARN-9251 Build failure for -Dhbase.profile=2.0
- Resolved
-
HDDS-1032 Package builds are failing with missing org.mockito:mockito-core dependency version
- Resolved
- contains
-
HADOOP-15225 mvn javadoc:test-javadoc goal throws cannot find symbol
- Resolved
- depends upon
-
HADOOP-14932 Move Mockito up to 1.10.19 to be compatible with HBase
- Resolved
- is blocked by
-
HADOOP-14188 Remove the usage of org.mockito.internal.util.reflection.Whitebox
- Resolved
-
HADOOP-14218 Replace assertThat with assertTrue in MetricsAsserts
- Resolved
-
HADOOP-14245 Use Mockito.when instead of Mockito.stub
- Resolved
- is related to
-
YARN-10071 Sync Mockito version with other modules
- Resolved
-
HADOOP-16600 StagingTestBase uses methods not available in Mockito 1.8.5 in branch-3.1
- Resolved
-
HDFS-14871 StagingTestBase uses methods not available in Mockito 1.8.5 in branch-3.1
- Resolved
-
HADOOP-12427 [JDK8] Upgrade Mockito version to 1.10.19
- Resolved
- supercedes
-
HADOOP-15398 StagingTestBase uses methods not available in Mockito 1.8.5
- Resolved