org.assertj.core.internal.Objects.assertNull()方法的使用及代码示例

x33g5p2x  于2022-01-26 转载在 其他  
字(2.2k)|赞(0)|评价(0)|浏览(192)

本文整理了Java中org.assertj.core.internal.Objects.assertNull()方法的一些代码示例,展示了Objects.assertNull()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Objects.assertNull()方法的具体详情如下:
包路径:org.assertj.core.internal.Objects
类名称:Objects
方法名:assertNull

Objects.assertNull介绍

[英]Asserts that the given object is null.
[中]断言给定对象为null。

代码示例

代码示例来源:origin: org.assertj/assertj-core

  1. /** {@inheritDoc} */
  2. @Override
  3. public void isNull() {
  4. objects.assertNull(info, actual);
  5. }

代码示例来源:origin: joel-costigliola/assertj-core

  1. /** {@inheritDoc} */
  2. @Override
  3. public void isNull() {
  4. objects.assertNull(info, actual);
  5. }

代码示例来源:origin: palantir/atlasdb

  1. private void assertMetricNotExists(MetricName metricName) {
  2. objects.assertNull(writableAssertionInfo, getMetric(metricName));
  3. }

代码示例来源:origin: palantir/atlasdb

  1. public void hasNotRegisteredTargetedOutcome(SweepOutcome outcome) {
  2. objects.assertNull(info, getGaugeForTargetedOutcome(outcome));
  3. }

代码示例来源:origin: org.assertj/assertj-core-java8

  1. /** {@inheritDoc} */
  2. @Override
  3. public void isNull() {
  4. objects.assertNull(info, actual);
  5. }

代码示例来源:origin: com.palantir.atlasdb/atlasdb-tests-shared

  1. private void assertMetricNotExists(MetricName metricName) {
  2. objects.assertNull(writableAssertionInfo, getMetric(metricName));
  3. }

代码示例来源:origin: org.assertj/assertj-db

  1. /**
  2. * Verifies that the value is {@code null}.
  3. *
  4. * @param <A> The type of the assertion which call this method.
  5. * @param assertion The assertion which call this method.
  6. * @param info Writable information about an assertion.
  7. * @param value The value.
  8. * @return {@code this} assertion object.
  9. * @throws AssertionError If the value is not {@code null}.
  10. */
  11. public static <A extends AbstractAssert<?>> A isNull(A assertion, WritableAssertionInfo info, Value value) {
  12. objects.assertNull(info, value.getValue());
  13. return assertion;
  14. }

代码示例来源:origin: joel-costigliola/assertj-db

  1. /**
  2. * Verifies that the value is {@code null}.
  3. *
  4. * @param <A> The type of the assertion which call this method.
  5. * @param assertion The assertion which call this method.
  6. * @param info Writable information about an assertion.
  7. * @param value The value.
  8. * @return {@code this} assertion object.
  9. * @throws AssertionError If the value is not {@code null}.
  10. */
  11. public static <A extends AbstractAssert<?>> A isNull(A assertion, WritableAssertionInfo info, Value value) {
  12. objects.assertNull(info, value.getValue());
  13. return assertion;
  14. }

相关文章