JunitTest 单元测试

package com.yiautos.psf.order.service.impl;

import org.junit.*;


public class JunitTest {

    @BeforeClass
    public static void beforeClass() {
        System.out.println("in before class");
    }

    @AfterClass
    public static void afterClass() {
        System.out.println("in after class");
    }

    @Before
    public void before() {
        System.out.println("in before");
    }

    @After
    public void after() {
        System.out.println("in after");
    }

    @Test
    public void testCase1() {
        System.out.println("in test case 1");
    }

    @Test
    public void testCase2() {
        System.out.println("in test case 2");
    }


}

 

posted @ 2022-04-18 11:05  八英里  阅读(71)  评论(0编辑  收藏  举报