Skip to content

Commit 52ec4a1

Browse files
committed
Tests runner corrected
1 parent 78e6325 commit 52ec4a1

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/test/java/com/aspose/email/cloud/sdk/api/EmailApiTests.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public class EmailApiTests {
2121
private static final String storage = "First Storage";
2222
private static final DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss'Z'");
2323

24-
@BeforeClass
24+
@BeforeClass(alwaysRun = true)
2525
public void oneTimeSetUp() throws Exception {
2626
api = new EmailApi(
2727
System.getenv("appKey"),
@@ -34,6 +34,11 @@ public void oneTimeSetUp() throws Exception {
3434
api.createFolder(new CreateFolderRequestData(folder, storage));
3535
}
3636

37+
@AfterClass(alwaysRun = true)
38+
public void oneTimeTearDown() throws Exception {
39+
api.deleteFolder(new DeleteFolderRequestData(folder, storage, true));
40+
}
41+
3742
@Test(groups = { "pipeline" })
3843
public void hierarchicalTest() throws Exception {
3944
String fileName = createCalendar();

0 commit comments

Comments
 (0)