Junit单元测试

Junit单元测试

package com.beyondx.test;
import org.junit.Test;

/**
 * @author beyondx
 * @create 2021-11-02 21:00
 */
public class JUnitTest {

    @Test
    public void testAdd(){
        int a = 1;
        int b = 2;
        int result = a + b;
        System.out.println(result);
    }
}

Junit4, API

https://junit.org/junit4/javadoc/latest/index.html

参考链接

https://junit.org/junit4/

posted on 2021-11-02 09:36  beyondx  阅读(36)  评论(0编辑  收藏  举报

导航