-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Ubuntu
committed
Mar 11, 2019
1 parent
90e4114
commit 6c7c018
Showing
1 changed file
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import org.junit.Test; | ||
import org.junit.*; // before after ... | ||
|
||
public class TestBeforeAfter { | ||
@BeforeClass | ||
public static void beforeClass() { | ||
System.out.println("Before class"); | ||
} | ||
|
||
@Before | ||
public void before() { | ||
System.out.println("Before"); | ||
} | ||
|
||
@After | ||
public void after() { | ||
System.out.println("After"); | ||
} | ||
|
||
@AfterClass | ||
public static void afterClass() { | ||
System.out.println("After class"); | ||
} | ||
|
||
@Test | ||
public void Case1() { | ||
System.out.println("Test case 1"); | ||
} | ||
|
||
@Test | ||
public void Case2() { | ||
System.out.println("Test case 2"); | ||
} | ||
} |