Uses of Class
cloud.opencode.base.test.assertion.SoftAssert
Packages that use SoftAssert
-
Uses of SoftAssert in cloud.opencode.base.test.assertion
Methods in cloud.opencode.base.test.assertion that return SoftAssertModifier and TypeMethodDescriptionAsserts that the string contains the substring 断言字符串包含子串Asserts that the string contains the substring with custom message 断言字符串包含子串(带自定义消息)Asserts that the string ends with the suffix 断言字符串以后缀结束Asserts that the string ends with the suffix with custom message 断言字符串以后缀结束(带自定义消息)Asserts that the actual number is between min and max (inclusive) 断言实际数值在最小值和最大值之间(包含)Asserts that the actual number is between min and max (inclusive) with custom message 断言实际数值在最小值和最大值之间(包含)(带自定义消息)Asserts that the string is empty 断言字符串为空Asserts that the string is empty with custom message 断言字符串为空(带自定义消息)Asserts that two objects are equal 断言两个对象相等Asserts that two objects are equal with custom message 断言两个对象相等(带自定义消息)Asserts that two objects are equal with lazy message 断言两个对象相等(带延迟消息)SoftAssert.isFalse(boolean condition) Asserts that the condition is false 断言条件为假Asserts that the condition is false with custom message 断言条件为假(带自定义消息)Asserts that the condition is false with lazy message 断言条件为假(带延迟消息)SoftAssert.isGreaterThan(Number actual, Number expected) Asserts that the actual number is greater than the expected 断言实际数值大于期望值SoftAssert.isGreaterThan(Number actual, Number expected, String message) Asserts that the actual number is greater than the expected with custom message 断言实际数值大于期望值(带自定义消息)SoftAssert.isGreaterThanOrEqualTo(Number actual, Number expected) Asserts that the actual number is greater than or equal to the expected 断言实际数值大于或等于期望值SoftAssert.isGreaterThanOrEqualTo(Number actual, Number expected, String message) Asserts that the actual number is greater than or equal to the expected with custom message 断言实际数值大于或等于期望值(带自定义消息)SoftAssert.isLessThan(Number actual, Number expected) Asserts that the actual number is less than the expected 断言实际数值小于期望值SoftAssert.isLessThan(Number actual, Number expected, String message) Asserts that the actual number is less than the expected with custom message 断言实际数值小于期望值(带自定义消息)SoftAssert.isLessThanOrEqualTo(Number actual, Number expected) Asserts that the actual number is less than or equal to the expected 断言实际数值小于或等于期望值SoftAssert.isLessThanOrEqualTo(Number actual, Number expected, String message) Asserts that the actual number is less than or equal to the expected with custom message 断言实际数值小于或等于期望值(带自定义消息)SoftAssert.isNotEmpty(String actual) Asserts that the string is not empty 断言字符串不为空SoftAssert.isNotEmpty(String actual, String message) Asserts that the string is not empty with custom message 断言字符串不为空(带自定义消息)SoftAssert.isNotEqualTo(Object unexpected, Object actual) Asserts that two objects are not equal 断言两个对象不相等SoftAssert.isNotEqualTo(Object unexpected, Object actual, String message) Asserts that two objects are not equal with custom message 断言两个对象不相等(带自定义消息)SoftAssert.isNotEqualTo(Object unexpected, Object actual, Supplier<String> messageSupplier) Asserts that two objects are not equal with lazy message 断言两个对象不相等(带延迟消息)Asserts that the object is not null 断言对象不为nullAsserts that the object is not null with custom message 断言对象不为null(带自定义消息)Asserts that the object is not null with lazy message 断言对象不为null(带延迟消息)Asserts that the object is null 断言对象为nullAsserts that the object is null with custom message 断言对象为null(带自定义消息)Asserts that the object is null with lazy message 断言对象为null(带延迟消息)SoftAssert.isTrue(boolean condition) Asserts that the condition is true 断言条件为真Asserts that the condition is true with custom message 断言条件为真(带自定义消息)Asserts that the condition is true with lazy message 断言条件为真(带延迟消息)SoftAssert.reset()Resets the soft assert by clearing all collected failures 通过清除所有收集的失败来重置软断言SoftAssert.startsWith(String actual, String prefix) Asserts that the string starts with the prefix 断言字符串以前缀开始SoftAssert.startsWith(String actual, String prefix, String message) Asserts that the string starts with the prefix with custom message 断言字符串以前缀开始(带自定义消息)