本文整理了Java中org.assertj.core.api.Assertions.useDefaultRepresentation()
方法的一些代码示例,展示了Assertions.useDefaultRepresentation()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Assertions.useDefaultRepresentation()
方法的具体详情如下:
包路径:org.assertj.core.api.Assertions
类名称: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();
内容来源于网络,如有侵权,请联系作者删除!