java类org.mockito.internal.matchers.GreaterThan的实例源码

AdditionalMatchers.java 文件源码 项目:astor 阅读 28 收藏 0 点赞 0 评论 0
/**
 * float argument greater than the given value.
 * <p>
 * See examples in javadoc for {@link AdditionalMatchers} class
 * 
 * @param value
 *            the given value.
 * @return <code>0</code>.
 */
public static float gt(float value) {
    return reportMatcher(new GreaterThan<Float>(value)).returnZero();
}
AdditionalMatchers.java 文件源码 项目:astor 阅读 27 收藏 0 点赞 0 评论 0
/**
 * int argument greater than the given value.
 * <p>
 * See examples in javadoc for {@link AdditionalMatchers} class
 * 
 * @param value
 *            the given value.
 * @return <code>0</code>.
 */
public static int gt(int value) {
    return reportMatcher(new GreaterThan<Integer>(value)).returnZero();
}
AdditionalMatchers.java 文件源码 项目:astor 阅读 24 收藏 0 点赞 0 评论 0
/**
 * long argument greater than the given value.
 * <p>
 * See examples in javadoc for {@link AdditionalMatchers} class
 * 
 * @param value
 *            the given value.
 * @return <code>0</code>.
 */
public static long gt(long value) {
    return reportMatcher(new GreaterThan<Long>(value)).returnZero();
}
AdditionalMatchers.java 文件源码 项目:astor 阅读 35 收藏 0 点赞 0 评论 0
/**
 * short argument greater than the given value.
 * <p>
 * See examples in javadoc for {@link AdditionalMatchers} class
 * 
 * @param value
 *            the given value.
 * @return <code>0</code>.
 */
public static short gt(short value) {
    return reportMatcher(new GreaterThan<Short>(value)).returnZero();
}
MetricsAsserts.java 文件源码 项目:hadoop-TCP 阅读 37 收藏 0 点赞 0 评论 0
/**
 * Assert that a long counter metric is greater than a value
 * @param name  of the metric
 * @param greater value of the metric should be greater than this
 * @param rb  the record builder mock used to getMetrics
 */
public static void assertCounterGt(String name, long greater,
                                   MetricsRecordBuilder rb) {
  Assert.assertThat("Bad value for metric " + name, getLongCounter(name, rb),
      new GreaterThan<Long>(greater));
}
MetricsAsserts.java 文件源码 项目:hadoop-TCP 阅读 34 收藏 0 点赞 0 评论 0
/**
 * Assert that a double gauge metric is greater than a value
 * @param name  of the metric
 * @param greater value of the metric should be greater than this
 * @param rb  the record builder mock used to getMetrics
 */
public static void assertGaugeGt(String name, double greater,
                                 MetricsRecordBuilder rb) {
  Assert.assertThat("Bad value for metric " + name, getDoubleGauge(name, rb),
      new GreaterThan<Double>(greater));
}
MetricsAsserts.java 文件源码 项目:hardfs 阅读 36 收藏 0 点赞 0 评论 0
/**
 * Assert that a long counter metric is greater than a value
 * @param name  of the metric
 * @param greater value of the metric should be greater than this
 * @param rb  the record builder mock used to getMetrics
 */
public static void assertCounterGt(String name, long greater,
                                   MetricsRecordBuilder rb) {
  Assert.assertThat("Bad value for metric " + name, getLongCounter(name, rb),
      new GreaterThan<Long>(greater));
}
MetricsAsserts.java 文件源码 项目:hardfs 阅读 26 收藏 0 点赞 0 评论 0
/**
 * Assert that a double gauge metric is greater than a value
 * @param name  of the metric
 * @param greater value of the metric should be greater than this
 * @param rb  the record builder mock used to getMetrics
 */
public static void assertGaugeGt(String name, double greater,
                                 MetricsRecordBuilder rb) {
  Assert.assertThat("Bad value for metric " + name, getDoubleGauge(name, rb),
      new GreaterThan<Double>(greater));
}


问题


面经


文章

微信
公众号

扫码关注公众号