File tree Expand file tree Collapse file tree
app/src/test/java/org/apache/roller/weblogger/business Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2828import java .io .PrintWriter ;
2929import java .io .StringWriter ;
3030import java .util .List ;
31+ import org .junit .jupiter .api .AfterEach ;
32+ import org .junit .jupiter .api .BeforeEach ;
3133
3234import static org .junit .jupiter .api .Assertions .*;
3335
@@ -48,6 +50,7 @@ public class CommentTest {
4850 /**
4951 * All tests in this suite require a user, weblog, and an entry.
5052 */
53+ @ BeforeEach
5154 public void setUp () throws Exception {
5255
5356 // setup weblogger
@@ -63,7 +66,8 @@ public void setUp() throws Exception {
6366 throw new Exception ("Test setup failed" , ex );
6467 }
6568 }
66-
69+
70+ @ AfterEach
6771 public void tearDown () throws Exception {
6872
6973 try {
Original file line number Diff line number Diff line change 3232import java .io .File ;
3333import java .sql .Timestamp ;
3434import java .util .*;
35+ import org .junit .jupiter .api .BeforeEach ;
3536
3637import static org .junit .jupiter .api .Assertions .*;
3738
@@ -47,13 +48,11 @@ public class MediaFileTest {
4748 public MediaFileTest () {
4849 }
4950
51+ @ BeforeEach
5052 public void setUp () throws Exception {
5153 TestUtils .setupWeblogger ();
5254 }
5355
54- public void tearDown () throws Exception {
55- }
56-
5756 /**
5857 * Test creation of directory by path
5958 */
You can’t perform that action at this time.
0 commit comments