摘要:
package com.mytest; import org.junit.jupiter.api.Nested; import org.junit.jupiter.api.Test; public class NestedExampleTest { @Nested //需要结合class使用 cla 阅读全文
posted @ 2023-08-24 22:13
iTao0128
阅读(99)
评论(0)
推荐(0)
摘要:
import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Timeout; import static java.lang.Thread.sleep 阅读全文
posted @ 2023-08-24 21:19
iTao0128
阅读(361)
评论(0)
推荐(0)
摘要:
自动化测试过程中,需要验证某些特殊场景时,需要传空或者传null null 参数的参数化注解 @NullSource 注解 参数为空的参数化注解 @EmptySource 注解 需要 null 和空都进行参数化,使用 @NullAndEmptySource 注解 还有其他参数可以用@ValueSou 阅读全文
posted @ 2023-08-24 21:16
iTao0128
阅读(80)
评论(0)
推荐(0)

浙公网安备 33010602011771号