Skip to content

Commit dfbce8f

Browse files
introduction to junit
1 parent c019ee5 commit dfbce8f

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

junit-intro/test/TestClassTest.java

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,25 +16,23 @@ public static void tearDownAfterClass() {
1616

1717
@Before
1818
public void setUp() {
19-
19+
System.out.println("Executed before");
2020
}
2121

2222
@After
2323
public void tearDown() {
24-
24+
System.out.println("Executed after");
2525
}
2626

2727
@Test
2828
public void test1() {
29-
29+
System.out.println("Test1");
3030
}
3131

3232
@Test
3333
public void test2() {
34-
35-
34+
System.out.println("Test2");
3635
}
3736

3837

39-
4038
}

0 commit comments

Comments
 (0)