Details
-
Test
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
None
-
None
-
None
Description
MetricsAsserts.java
public static void assertCounterGt(String name, long greater, MetricsRecordBuilder rb) { Assert.assertThat("Bad value for metric " + name, getLongCounter(name, rb), new GreaterThan<Long>(greater)); }
The following code cannot be compiled with Mockito 2.1+ because it does not depend on org.hamcrest.Matcher anymore. We can simply replace this code with assertTrue(message, getLongCounter() > greater).
Attachments
Attachments
Issue Links
- blocks
-
HADOOP-14178 Move Mockito up to version 2.23.4
- Resolved