本文整理了Java中io.airlift.testing.Assertions.assertBetweenExclusive()
方法的一些代码示例,展示了Assertions.assertBetweenExclusive()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Assertions.assertBetweenExclusive()
方法的具体详情如下:
包路径:io.airlift.testing.Assertions
类名称:Assertions
方法名:assertBetweenExclusive
暂无
代码示例来源:origin: airlift/airlift
public static <T extends Comparable<T>> void assertBetweenExclusive(T actual, T lowerBound, T upperBound)
{
assertBetweenExclusive(actual, lowerBound, upperBound, null);
}
代码示例来源:origin: io.airlift/testing
public static <T extends Comparable<T>> void assertBetweenExclusive(T actual, T lowerBound, T upperBound)
{
assertBetweenExclusive(actual, lowerBound, upperBound, null);
}
代码示例来源:origin: com.teradata.airlift/testing
public static <T extends Comparable<T>> void assertBetweenExclusive(T actual, T lowerBound, T upperBound)
{
assertBetweenExclusive(actual, lowerBound, upperBound, null);
}
代码示例来源:origin: airlift/airlift
@SuppressWarnings({"unchecked", "rawtypes"})
public void passBetweenExclusive(Comparable actual, Comparable lowerBound, Comparable upperBound)
{
assertBetweenExclusive(actual, lowerBound, upperBound);
assertBetweenExclusive(actual, lowerBound, upperBound, MESSAGE);
}
代码示例来源:origin: io.airlift/testing
@SuppressWarnings({"unchecked", "rawtypes"})
public void passBetweenExclusive(Comparable actual, Comparable lowerBound, Comparable upperBound)
{
assertBetweenExclusive(actual, lowerBound, upperBound);
assertBetweenExclusive(actual, lowerBound, upperBound, MESSAGE);
}
代码示例来源:origin: com.teradata.airlift/testing
@SuppressWarnings({"RawUseOfParameterizedType"})
public void passBetweenExclusive(Comparable actual, Comparable lowerBound, Comparable upperBound)
{
Assertions.assertBetweenExclusive(actual, lowerBound, upperBound);
Assertions.assertBetweenExclusive(actual, lowerBound, upperBound, MESSAGE);
}
代码示例来源:origin: io.airlift/testing
@SuppressWarnings({"unchecked", "rawtypes"})
public void failBetweenExclusive(Comparable actual, Comparable lowerBound, Comparable upperBound)
{
try {
assertBetweenExclusive(actual, lowerBound, upperBound);
fail("Expected AssertionError");
}
catch (AssertionError e) {
verifyExceptionMessage(e, null, actual, lowerBound, upperBound);
}
try {
assertBetweenExclusive(actual, lowerBound, upperBound, MESSAGE);
fail("Expected AssertionError");
}
catch (AssertionError e) {
verifyExceptionMessage(e, MESSAGE, actual, lowerBound, upperBound);
}
}
代码示例来源:origin: airlift/airlift
@SuppressWarnings({"unchecked", "rawtypes"})
public void failBetweenExclusive(Comparable actual, Comparable lowerBound, Comparable upperBound)
{
try {
assertBetweenExclusive(actual, lowerBound, upperBound);
fail("Expected AssertionError");
}
catch (AssertionError e) {
verifyExceptionMessage(e, null, actual, lowerBound, upperBound);
}
try {
assertBetweenExclusive(actual, lowerBound, upperBound, MESSAGE);
fail("Expected AssertionError");
}
catch (AssertionError e) {
verifyExceptionMessage(e, MESSAGE, actual, lowerBound, upperBound);
}
}
代码示例来源:origin: com.teradata.airlift/testing
@SuppressWarnings({"RawUseOfParameterizedType"})
public void failBetweenExclusive(Comparable actual, Comparable lowerBound, Comparable upperBound)
{
try {
Assertions.assertBetweenExclusive(actual, lowerBound, upperBound);
Assert.fail("Expected AssertionError");
}
catch (AssertionError e) {
verifyExceptionMessage(e, null, actual, lowerBound, upperBound);
}
try {
Assertions.assertBetweenExclusive(actual, lowerBound, upperBound, MESSAGE);
Assert.fail("Expected AssertionError");
}
catch (AssertionError e) {
verifyExceptionMessage(e, MESSAGE, actual, lowerBound, upperBound);
}
}
内容来源于网络,如有侵权,请联系作者删除!