[
https://issues.apache.org/jira/browse/HADOOP-14218?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15944590#comment-15944590
]
Hudson commented on HADOOP-14218:
---------------------------------
SUCCESS: Integrated in Jenkins build Hadoop-trunk-Commit #11478 (See
[https://builds.apache.org/job/Hadoop-trunk-Commit/11478/])
HADOOP-14218. Replace assertThat with assertTrue in MetricsAsserts. (aajisaka:
rev 448ec81fd7133f413853570f116d5f6e16f68bd9)
* (edit)
hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/test/MetricsAsserts.java
> Replace assertThat with assertTrue in MetricsAsserts
> ----------------------------------------------------
>
> Key: HADOOP-14218
> URL: https://issues.apache.org/jira/browse/HADOOP-14218
> Project: Hadoop Common
> Issue Type: Test
> Reporter: Akira Ajisaka
> Assignee: Akira Ajisaka
> Priority: Minor
> Fix For: 2.9.0, 3.0.0-alpha3
>
> Attachments: HADOOP-14218.01.patch
>
>
> {code:title=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));
> }
> {code}
> 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)}}.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]