import org.junit.Rule; import org.junit.Test; public class RandomizedTest { @Rule public RandomizedTestRule rule = new RandomizedTestRule(); @Test public void testAddition() { int a = rule.getRandom().nextInt(); int b = rule.getRandom().nextInt(); int result = a + b; Assert.assertEquals(result, a + b); } @Test public void testConcurrentExecution() { } }


上一篇:
下一篇:
切换中文