Skip to content

Commit

Permalink
week 4 fix change file name
Browse files Browse the repository at this point in the history
  • Loading branch information
Ubuntu committed Mar 11, 2019
1 parent 90e4114 commit 6c7c018
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions junit/beforeAfter/testcase/TestBeforeAfter.java
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");
}
}

0 comments on commit 6c7c018

Please sign in to comment.