org.assertj.core.api.Assertions.useDefaultRepresentation()方法的使用及代码示例

x33g5p2x  于2022-01-15 转载在 其他  
字(1.5k)|赞(0)|评价(0)|浏览(93)

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

Assertions.useDefaultRepresentation介绍

[英]Fallback to use StandardRepresentation to revert the effect of calling #useRepresentation(Representation).
[中]使用StandardRepresentation恢复调用#UserRepresentation(Representation)的效果。

代码示例

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

/**
  * Fallback to use {@link StandardRepresentation} to revert the effect of calling {@link #useRepresentation(Representation)}.
  * @since 3.9.0
  */
 default void useDefaultRepresentation() {
  Assertions.useDefaultRepresentation();
 }
}

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

/**
  * Fallback to use {@link StandardRepresentation} to revert the effect of calling {@link #useRepresentation(Representation)}.
  * @since 3.9.0
  */
 default void useDefaultRepresentation() {
  Assertions.useDefaultRepresentation();
 }
}

代码示例来源:origin: facebook/litho

@Override
 public void evaluate() throws Throwable {
  final Activity activity = Robolectric.buildActivity(Activity.class).create().get();
  mContext = new ComponentContext(activity);
  setComponentStyleableAttributes();
  Assertions.useRepresentation(new LithoRepresentation(mContext));
  try {
   base.evaluate();
  } finally {
   Assertions.useDefaultRepresentation();
  }
 }
};

代码示例来源:origin: facebook/litho

Assertions.useDefaultRepresentation();

相关文章