Document

前言:不知道是最近懒了,还不不想认真写博客,其实写一个质量高的博客是需要时间的,没办法时间太紧了

 1 package com.mon11.day13.linkedlist;
 2 
 3 import static org.junit.Assert.*;
 4 
 5 import org.junit.After;
 6 import org.junit.Before;
 7 import org.junit.Test;
 8 
 9 /** 
10 * 类说明 :
11 * @author 作者 : Administrator 
12 * @version 创建时间:2017年11月13日 
13 */
14 public class TestJunit {
15 
16     @Before
17     public void init(){
18         System.out.println("不管你们是谁,我最先执行!");
19     }
20     
21     @After
22     public void destory(){
23         System.out.println("我是终结者------------!");
24         System.out.println("---------------OO**_**OO-----------------------");
25     }
26 
27     @Test
28     public void test1() {
29         System.out.println("我是test1,我来运行了!");
30     }
31     @Test
32     public void test2() {
33         System.out.println("我是test2,我来运行了!");
34     }
35 
36 }

运行效果:

原文地址:https://www.cnblogs.com/chenyanlong/p/7828731.html