<dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.13.2</version> <scope>test</scope> </dependency> import org.junit.Test; import static org.junit.Assert.assertEquals; public class MyMathTest { @Test public void testAddition() { int result = MyMath.add(2, 3); assertEquals(5, result); } }


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